psignoret / aad-sso-wordpress

Single Sign-on with Azure Active Directory (for WordPress)
Other
270 stars 78 forks source link

redirected from Microsoft back to login, but am not logged in wordpress #270

Open meddie77 opened 1 month ago

meddie77 commented 1 month ago

Hello, I installed the AD SSO WordPress plugin for testing on my test website, and everything worked there. Now I have installed the plugin on the production site and configured it exactly as on the test site. When I now access the wp-login.php on the production site, I have a link to Microsoft below the username and password input fields. I can log in there and am then redirected back to wp-login.php, but I am neither logged in, nor has the user been created. Can you help me? Thank you very much.

Best regards, Eddie

bradkovach commented 1 month ago

Share screenshot of the config with your client id and secret obscured.

Also, are you using b2c, by chance?

Get Outlook for iOShttps://aka.ms/o0ukef


From: meddie77 @.> Sent: Thursday, October 3, 2024 1:30:00 PM To: psignoret/aad-sso-wordpress @.> Cc: Subscribed @.***> Subject: [psignoret/aad-sso-wordpress] redirected from Microsoft back to login, but am not logged in wordpress (Issue #270)

Hello, I installed the AD SSO WordPress plugin for testing on my test website, and everything worked there. Now I have installed the plugin on the production site and configured it exactly as on the test site. When I now access the wp-login.php on the production site, I have a link to Microsoft below the username and password input fields. I can log in there and am then redirected back to wp-login.php, but I am neither logged in, nor has the user been created. Can you help me? Thank you very much.

Best regards, Eddie

— Reply to this email directly, view it on GitHubhttps://github.com/psignoret/aad-sso-wordpress/issues/270, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAPS3WJB24G6PUL35YCRJWTZZWLLRAVCNFSM6AAAAABPKORWQOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DIOBVGM3DMMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

meddie77 commented 1 month ago

screenshot1 screenshot2 screenshot3 screenshot4

nope i dont use b2c

meddie77 commented 1 month ago

Hello everyone, today I had some time to research what could be causing the issue, and I found that the problem described above occurs when the plugin WP Armour - Honeypot Anti Spam is activated. Can anyone of you reproduce this?

Thank you very much! Best regards, Eddie

ForgottenHero commented 3 weeks ago

Hey Eddie, I'm setting this up in my staging site and encountering the same issue as you, where the user visits the domain/wp-login.php page and signs-in using Entra, but is then returned to the front-end login page. I did notice the URL has the code appended.

I don't use the WP Armour plugin, but I suspect something in the plugin WP User Manager could be conflicting.

I'll update you here if I find a workaround. And please update us also if you figure it out on your side too.