Could not create or retrieve your login

Use this guide to to resolve single sign-on issues, after you installed, activated and configured it and the plugin displays the following error message Could not create or retrieve your login.

  • The (Office 365 / Azure AD) user you are trying to sign in with does not have an email. If you still want to be able to sign in with this user you can navigate to WP Admin > WPO365 > Miscellaneous and check the option Use older ID token parser. The older ID token will fake an email address by using the user’s (Office 365 / Azure AD) login name instead. Obviously, that user may not be able to receive any emails that WordPress sends to this address. Also, if you decide to use the older ID token parser you should uncheck the option Use Azure AD V2 that can be found on the Single Sign-on tab of the plugin’s wizard.
  • You just upgraded from an older version and haven’t yet switched to using Azure AD App registration V2. Please note that switching is not mandatory and requires you to update the App registration in Azure AD for the your WordPress website. See https://wpo365.helpscoutdocs.com/article/4-upgrade-to-azure-ad-app-registration-v2-0 for details on how to update the App registration from V1 to V2.
  • The (Office 365 / Azure AD) user you are trying to sign in with does have an email address but you are not requesting Microsoft to send it as part of the authentication response (sent by Microsoft when it redirects the user back after successfully having authenticated). See http://www.wpo365.com/azure-application-registration/#upn for a detailed instruction on how to request a user’s email.
  • The (Office 365 / Azure AD) user you are trying to sign in with does have a valid login name (= user principal name) but you are not requesting Microsoft to send it as part of the authentication response (sent by Microsoft when it redirects the user back after successfully having authenticated). See http://www.wpo365.com/azure-application-registration/#upn for a detailed instruction on how to request a user’s upn.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us