openid-connect-generic
openid-connect-generic copied to clipboard
Redirect to /connect/authorize IdP using User Switching Plugin + SSO enabled
Describe the bug After login in a IdP, use the User Switching plugin to impersonate another user and a happens to /connect/authorize of IdP. This redirect authenticate the same user and the impersonate comes back to the logged user. If the login uses the button in form login, this scenario doesn't happen and everything works fine.
To Reproduce Steps to reproduce the behavior:
- Install User Switching plugin (https://wordpress.org/plugins/user-switching)
- Configure the OpenID Connect Generic
- Enable SSO
- Authenticate with user 'X'
- Switch to user 'Y'
Screenshots
Expected behavior Impersonate to user 'Y' as the same way when the configuration hasn't SSO enabled
WordPress Environment
- Website URL: local
- PHP Version:
- WordPress Version: 6.6.1
- Plugin Version: 3.10.0
- Identity Provider: my own Idp
- Relevant Plugin Settings:
This is not really a bug. This plugin doesn't support use with user switching/impersonation. It is essentially against using SSO/an IDP to impersonate another user.
This is not really a bug. This plugin doesn't support use with user switching/impersonation. It is essentially against using SSO/an IDP to impersonate another user.
I agree with you about impersonating another user, but my client needs this feature. Do you have any tips to jump on this request to help me, this plugin is the only one I found to solve my problem, we are moving from Auth0 IdP to our own IdP. Could you help me?
Thanks for your time and quick answer Regards Alex
@alextochetto i just tried to reproduce since we do have the same requirement. Sadly i can't. Do you have some more details?
@alextochetto i just tried to reproduce since we do have the same requirement. Sadly i can't. Do you have some more details?
@JUVOJustin , how did you configure the environment? Did you enable the Login Type to Auto Login - SSO in plugin configuration?
- You need to login with a user using IdP
- This user must have Administrator profile
- Then use User Switching plugin to switch user like the image below
The wordpress will try to switch, but keep the actual user logged and cancel the switch If you need more information let me know
@timnolte , are you interested in being paid for this enhancement?
@alextochetto you are right i did not configure Auto Login. Will check and give it a try.