Here is part of my security.yaml
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
switch_user: true
lazy: true
security: true
guard:
authenticators:
- cas.security.authentication.authenticator
adding ?_switch_user=targetuser to the URL works. I have intercept redirects turned on and on the intercept page it shows me as authenticated as the target user but when I follow the redirect it is gone.
Am I missing something? Thanks in advance

Here is part of my security.yaml
adding ?_switch_user=targetuser to the URL works. I have intercept redirects turned on and on the intercept page it shows me as authenticated as the target user but when I follow the redirect it is gone.
Am I missing something? Thanks in advance