I want to override the SessionAuth's behaviour of checking if the session is present or not and if not redirect to login page. I know I need to modify the overrideGlobalClaimValidators field but I am having troubles finding documentation on it. I don't know what exactly to put. All I know is the authorization part where it checks the roles.
r
rp_st
03/23/2024, 5:09 AM
hey @Sekai the component does exactly what you described by default. Is there anything i am missing here?'
s
Sekai
03/23/2024, 5:19 AM
How can I modify SessionAuth's behaviour of checking if the session is present or not and if not redirect to login page with overrideGlobalClaimValidators?
r
rp_st
03/23/2024, 5:45 AM
well, that function is not meant for that. It's meant to check the claims in case a session exists.
s
Sekai
03/25/2024, 11:43 PM
@rp_st Oh I see, is there a different function for it? I want to put a conditional before the redirection, or even modifying the redirection would work too.