I want to override the SessionAuth's behaviour of ...
# support-questions-legacy
s
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
hey @Sekai the component does exactly what you described by default. Is there anything i am missing here?'
s
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
well, that function is not meant for that. It's meant to check the claims in case a session exists.
s
@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.
r
There is Session.doesSessionExist
s
hmm I see I will try that
8 Views