SAML-Toolkits / wordpress-saml

OneLogin SAML plugin for Wordpress
MIT License
65 stars 74 forks source link

Keep seeing login page #80

Closed bkno closed 4 years ago

bkno commented 4 years ago

It seems some users get stuck in a cycle of logging in and getting redirected back to the login page endlessly. Has anyone else seen this?

The IDP is Salesforce in this case.

One user ran into this after logging in 14 hours after the account was set up.

I'm unable to replicate this so far but have seen the issue myself once when the the IDP login page won't go away.

sandykadam commented 4 years ago

Try to check in an incognito browser, for some reason, this has an issue with browser cache, I have also faced this issue.

bkno commented 4 years ago

@sandykadam thanks, I too found the login works when starting a private tab. This shows it's not an issue with the credentials. Did you see this with Salesforce or a different IDP? I'm trying to figure out where the problem lies.

sandykadam commented 4 years ago

We are using https://simplesamlphp.org/samlsp

bkno commented 4 years ago

Thanks @sandykadam. As it's happening with two different IDPs it makes me think it is a bug with this plugin or WordPress.

As a workaround it seems using the IDP logout URL will let them log in successfully afterwards. I have Single Log Out setup. Only a workaround though, will try and debug more.

sandykadam commented 4 years ago

Yes, @bkno I also suspect it might be plugin or WordPress but maintainers can give more clarity on this. There is no specific use case to describe this behavior, sometimes it happens randomly on a different scenario.

pitbulk commented 4 years ago

I'm not aware of such bug.

Can you detail what are your SAML configuration, WP and SAML plugin versions?

sandykadam commented 4 years ago

WP - 5.2.3 SAML plugin - 3.0.0

pitbulk commented 4 years ago

I guess if only affected some users, then it could be related to the fact that the IdP data retrieved from those users where not enough to SSO or Just-in-time provision the user.

pitbulk commented 4 years ago

See #73