All available documentation on this website is currently being reviewed and updated. This article has already been moved to https://docs.wpo365.com/article/34-redirect-uri.
12 comments
Leave a Reply Cancel reply
rd98ac
Excellent product, and great support
If you are looking for a simple solution to authenticate your WordPress site with Azure AD, look no further. The Azure AD / LOGIN series of plugins provides a solution which is consistently kept [...]up-to-date. Not able to get it working? Contact support and you hear back very quickly by the developer, Marco. We have been using this plugin now since it was first introduced (while still in beta).
Since then the product has developed into a complete suite of applications. Feel free to reply to this if you have specific questions or want to know how we've used the solution in our enterprise
environment. Read more »
January 13, 2021
elisasinger
Brilliant - Super clear instructions and very flexible
Couldn't be happier; such a simple plugin that is so feature-rich, enabling SSO for our M365 users. Bravo!
January 10, 2021
nemseck
Great component
Me and my team are really into a "plugin-free" way of development. We don't like using components but we needed a complete and structured solution in order to make an Azure AD integration work. [...]Not only this component has been great, but Marco provided us an awesome and quick support, implementing for me and my team a little feature in order to match our client need.
I completely recommend this plugin. Read more »
December 21, 2020
brbj
Works great!
Why typing here when stuff works. If it doesn't one day I will send email to you guys about it.
December 10, 2020
Jan Klán (HopXXII)
Easy To Setup
It was pretty easy to setup, great docs.
November 25, 2020
Is there any way to redirect logged in user to a different front-end page?
At the moment a user gets automatically redirected to the page he/she requested initially and that required that user to be signed in. When the user isn’t signed into your website at that moment, the plugin will redirect first to Microsoft’s login page before Microsoft redirects the user back to page where he/she came from. This latter behavior, however, is done through a state property that is set by the plugin. I will take it into consideration to add a configuration option for this (there is already the goto-after configuration option, but that’s only for intercepted manual login attempts since it doesn’t make sense to redirect the user to the login page after he/she manually logged in).
i’m using this plugin and it works great
but now i’m having a strange issue:
in the beginning i configured it to redirect successful login to the wp-admin and it did
now my clients wants successful login to be redirected to the home page, so obviously i updated the settings accordingly (both in the plugin settings at the word-press dashboard and also in the azure app settings) but it doesn’t seem to have any effect and users are still being redirected to the wp-admin!
i have double checked the url settings is identical in WordPress settings, plugin redirect settings and azure app redirect settings and as far as i know there isn’t any caching plugin present
what can we do?
Hi Doron, there is basically no setting that tells the plugin to redirect the user to a dedicated page upon login. The Redirect URI setting is part of the authentication “handshake” required by Microsoft and yes, upon login the user is initially sent to this URL, but then the plugin redirects the user to the page he initially “intended” to visit before the plugin intercepted the request, analyzed it and concluded that the user is not logged in. The Premium Version offers a feature to intercept manual login attempts and only in that case the user is redirected to a dedicated “Goto After” URL (because otherwise the user would be redirected by to the login page, after having logged in.
Hi mvan and thank you so much for clarifying this issue! 🙂
we will definitely consider buying the Premium version of the plugin
Thank you, always happy to help!
I am trying to set this plugin to redirect to the page initially requested, but currently it just redirects to the front page of WordPress. I am also using same plugin for other pages in my system, and I’d really like to have a redirect back into that system (or wherever client was coming from) instead of always being sent to the WP front page.
Where is this config? I think I am missing something :-). Thank you so much in advance!
Hi Jakob. The default behavior of the Plugin is to redirect the user back to the page he/she initially requested. This is not related to the Redirect URI that you configured for the Azure AD app. If you use the professional or premium version you can override this behavior but otherwise the user should be sent back to the page initially requested. If this isn’t the case I’ll investigate if you let me know what version you are using.
Thank you for quick and super answer!
Ok, then the redirect is hardcoded somewhere – where can I look? What settings dictate this behaviour? Currently it always goes to front page, and I’d like to revert this, if possible.
It’s a crazy old version we run, which I will have to upgrade soon, but a bit scared of any unknown upgrade problems (many people using the site). Current version running is v4.2 :-). Is the upgrade filled with scary stories?
Any upgrade is always a bit scary, but I’m trying to make it as less scary as possible. Ideally, however, you always try to update as soon as possible. You can consult the change log to be able to see exactly how scary it will be. As I wrote earlier, the default behavior of the plugin should send the user back to page where he came from unless you have the premium version installed and configured a Goto after e.g. in combination with Intercept manual logins.
Thanks. Very strange, though, I see no mention of GoTo on any of the three pages “Azure AD”, “User Management”, “Miscellaneaous” or “Import / Export”. Where is this set?
Hi Jakob – Somehow I missed your latest comment and I know it’s a bit old by now. I think you didn’t see it because you’re using an older version and possibly not the premium version? Please let me know if you’ve been able to get things working by now or if you’d need any further support. Feel free to use the contact form to contact me.