aad-sso-wordpress icon indicating copy to clipboard operation
aad-sso-wordpress copied to clipboard

Multiple Reply/Redirect URLs

Open jjacobs1 opened this issue 7 years ago • 2 comments

Maybe I've configured something wrong but it seems you can only setup this plugin to use one url. For example we would like to have the ability for users to be able to login using both https://domain.com and https://www.domain.com. I have both reply urls configured in our Azure app setting for our site. But I'm not able to configure multiple urls within the plugin.

jjacobs1 avatar Sep 18 '17 14:09 jjacobs1

It's true that the plugin today is configured to use only one reply URL. What is the experience when you use sign in under (e.g. https://www.example.com), but the reply URL is under the parent domain name (https://example.com/wp-login.php)? What about the reverse (signing in to https://example.com, but reply URL is configured for https://www.example.com/wp-login.php)?

psignoret avatar Sep 30 '17 03:09 psignoret

In my case I have three URLs configured for the site: https://mysite-prod.azurewebsites.net https://mysite.mydomain.com https://officialname.mydomain.com

The Azure AD application is configured with all three Reply URLs. The plugin is configured with https://officialname.mydomain.com.

The experience is that attempting to log on from both "technical" addresses: https://mysite-prod.azurewebsites.net/wp-login.php https://mysite.mydomain.com/wp-login.php results in redirection to https://officialname.mydomain.com/wp-login.php, where an error message about antiforgery ID is shown (depending on past actions in the browser, either "Session does not contain antiforgery ID" or "ANTIFORGERY_ID mismatch").

jberezanski avatar Jun 18 '18 22:06 jberezanski