l3-team / CasGuardBundle

PHPCas wrapper for Symfony3, Symfony4, Symfony 5, Symfony 6, Symfony 7
8 stars 4 forks source link

switch user doesn't work #1

Open cctgteddy opened 1 year ago

cctgteddy commented 1 year ago

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

image

nik8638 commented 1 year ago

same issue here, Anything ?

mhetru commented 1 year ago

Hello, i don't use the switch functionnality of symfony but you can contribute if you have the issue of this

Have you a usecase of this to provide in order to understand the functionnality ? Have you some documentation of this ?

I have written my own bundle of switch functionnality with storage of the main id (returned by cas server) in a cookie. But i have never uploaded the source code of this

Best regards,

Mathieu