-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong redirect URL #248
Comments
Can you share what other plugins you have enabled? What does URL pointed to by the "Sign in with you..." link look like? (Also, note there's a way to bypass automatic redirect, easier than renaming the plugin: https://github.com/psignoret/aad-sso-wordpress#bypassing-automatic-redirect-to-azure-ad-to-prevent-lockouts) |
The link itself appears to be everything that should be there after the question mark. There is no actual domain name in the link, so the browser is making it a relative link.
There’s several plugins installed, but nothing was updated when it just randomly stopped working (unless WordPress updated something without me knowing it).
Here’s the list of plugins.
Advanced Sidebar Menu
Akismet Anti-Spam
Allow Word/Powerpoint/Excel file uploads
Cache-Control
Classic Widgets
Code Embed
Cron GUI
Disable XML-RPC Pingback
Display PHP Version
Display Posts
Display Widgets
Embed Posts
Exclude Pages from Navigation
FeedWordPress
GDPR Cookie Consent
List Pages Shortcode
Login LockDown
My Page Order
PayPal Donations
Persistent database connection updater
Query Monitor
Recent Posts by Category Widget
Redirection
Redirection Reporting
Redis Object Cache
Remove Yoast SEO Comments
Search Everything
SendGrid
Single Sign-on with Azure Active Directory
Social Snap
Social Snap Boost Old Posts
SyntaxHighlighter Evolved
Term Management Tools
Ultimate Category Excluder
Widget CSS Classes
Wonder Slider Lite
Wordpress Facebook Pixel
WordPress Force HTTPS
WordPress Importer
WP Crontrol
WP Hide Dashboard
WP Search Suggest
WP Twitter Feeds
WP-RSSImport
WP-Stats
WPFront User Role Editor
Yoast SEO
|
The link should not be pointing to the website, it should be pointing to Azure AD (e.g. https://login.microsoftonline.com/...). What values have you used in the plugin configuration for the redirect URL and the Azure AD authority? |
I'm facing the same problem on a fresh wordpress installation (with no plugins installed) The "Redirect URL" and "Logout redirect URL" was generated like this on the "Azure AD" config-page in Wordpress: But the link at the login-page just points to the: Did you manage to fix it, @mrdenny ? Or maybe you have a input here, @psignoret ? Will this plugin fetch something server-side, too? Currently I'm testing in a closed env., where the server arn't able to talk with anybody. However, the client who visit wp-login.php will be able to access the internet. I took a look at this, but I'm still a bit unsure... Update: Are there no other way of handling this, without having the host to be connected to the internet? |
I've got a super weird problem. I have the checkbox to automatically forward users to the AAD login screen so that we bypass the Wordpress login screen. This is redirecting user back to the login screen and never taking them to the AAD login screen. I renamed the plugin, got into the website (I've got a Wordpress username and password) then put the plugin back. I turned off the redirection to the AAD page, and when I look at the link that the login page use (shown below) that link is pointing back to my website not the AAD URL.
Any clue why this is redirecting to the wrong place and how to fix it?
The text was updated successfully, but these errors were encountered: