AzureAD / active-directory-b2c-wordpress-plugin-openidconnect

A plugin for WordPress that allows users to authenticate with Azure AD B2C using OpenID Connect.
MIT License
31 stars 28 forks source link

return url redirection issue #28

Open pankajmonga10 opened 5 years ago

pankajmonga10 commented 5 years ago

If I configure only sign-in policy with the plugin then after login with active directory, user is being redirected to site home page. Post login, even if i try to navigate to wp-admin again it is being redirected to the site home page only. I am unable to access the wordpress admin dashboard post successful login. This behavior is working fine if i configure both signup and sign in policies.

TomBertie commented 5 years ago

I had this problem. With me it was because the Email Address properties in B2C and therefore the Email Addresses claim were empty. This plugin searches for WP user by the first email in the claim. If it is empty the login fails and you will go back to the Home page as an un-logged in user. This may be the problem you are having?