/wp-admin redirects to home
-
We discovered that for some of our sites logging in with Microsoft was not possible.
Symptoms:
1. When opening /wp-admin the user is immidetly redirected to the home page (/ or /en/ with WPML)
2. Same when opening /login and clicking Sign in with Microsoft
3. The user never sees login.microsoftonline.com – so there are no errors in the Entra ID sign in logsThe above was tested with all other plugins disabled.
SSO configuration:
Idp: EntraID
Protocol: OIDC
Flow: Hybrid
Redirect URI: https://foobar/wp-admin/
wp-config.php:define( 'WPO_AUTH_SCENARIO', 'internet' );
We found that the sites with the issue was using version 42.2 of WPO365. After reverting to version 41.3 all sites started working again.
Debug log:
05-25-2026 14:52:16.237016
DEBUG
Wpo\Services\Ajax_Service::ajax_response -> Sending an AJAX response with status OK and message
05-25-2026 14:52:16.228554
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Found [/admin-ajax.php] thus cancelling session validation for path /wp-admin/admin-ajax.php
05-25-2026 14:52:16.228544
DEBUG
Array ( [0] => /login/ [1] => admin-ajax.php [2] => wp-cron.php [3] => xmlrpc.php [4] => /wp-login.php [5] => /favicon.ico )
05-25-2026 14:52:16.228536
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Pages Blacklist after error page / custom login has verified
05-25-2026 14:52:16.228506
DEBUG -> Wpo\Services\Authentication_Service::skip_authentication
05-25-2026 14:52:16.228465
DEBUG -> Wpo\Services\Authentication_Service::authenticate_request
05-25-2026 14:52:15.886680
DEBUG
Wpo\Services\Authentication_Service::authenticate_request -> User is a WordPress-only user so no authentication is required
05-25-2026 14:52:15.886664
DEBUG
Array ( [0] => /login/ [1] => admin-ajax.php [2] => wp-cron.php [3] => xmlrpc.php [4] => /wp-login.php [5] => /favicon.ico )
05-25-2026 14:52:15.886652
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Pages Blacklist after error page / custom login has verified
05-25-2026 14:52:15.886612
DEBUG -> Wpo\Services\Authentication_Service::skip_authentication
05-25-2026 14:52:15.886538
DEBUG -> Wpo\Services\Authentication_Service::authenticate_request
05-25-2026 14:52:13.020830
DEBUG
Wpo\Services\Authentication_Service::authenticate_request -> User requesting /wp-admin/ is not logged in and therefore sending the user to Microsoft to sign in
05-25-2026 14:52:13.020796
DEBUG
Array ( [0] => /login/ [1] => admin-ajax.php [2] => wp-cron.php [3] => xmlrpc.php [4] => /wp-login.php [5] => /favicon.ico )
05-25-2026 14:52:13.020771
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Pages Blacklist after error page / custom login has verified
05-25-2026 14:52:13.020288
DEBUG -> Wpo\Services\Authentication_Service::skip_authentication
05-25-2026 14:52:13.020229
DEBUG -> Wpo\Services\Authentication_Service::authenticate_request
05-25-2026 14:52:08.403318
DEBUG
Wpo\Services\Ajax_Service::ajax_response -> Sending an AJAX response with status OK and message
05-25-2026 14:52:08.393135
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Found [/admin-ajax.php] thus cancelling session validation for path /wp-admin/admin-ajax.php
05-25-2026 14:52:08.393123
DEBUG
Array ( [0] => /login/ [1] => admin-ajax.php [2] => wp-cron.php [3] => xmlrpc.php [4] => /wp-login.php [5] => /favicon.ico )
05-25-2026 14:52:08.393114
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Pages Blacklist after error page / custom login has verified
05-25-2026 14:52:08.393068
DEBUG -> Wpo\Services\Authentication_Service::skip_authentication
05-25-2026 14:52:08.393008
DEBUG -> Wpo\Services\Authentication_Service::authenticate_request
05-25-2026 14:52:08.314989
DEBUG
Wpo\Services\Ajax_Service::ajax_response -> Sending an AJAX response with status OK and message
05-25-2026 14:52:08.304217
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Found [/admin-ajax.php] thus cancelling session validation for path /wp-admin/admin-ajax.php
05-25-2026 14:52:08.304206
DEBUG
Array ( [0] => /login/ [1] => admin-ajax.php [2] => wp-cron.php [3] => xmlrpc.php [4] => /wp-login.php [5] => /favicon.ico )
05-25-2026 14:52:08.304197
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Pages Blacklist after error page / custom login has verified
05-25-2026 14:52:08.304155
DEBUG -> Wpo\Services\Authentication_Service::skip_authentication
05-25-2026 14:52:08.304105
DEBUG -> Wpo\Services\Authentication_Service::authenticate_request
05-25-2026 14:52:08.220697
DEBUG
Wpo\Services\Ajax_Service::ajax_response -> Sending an AJAX response with status OK and message
05-25-2026 14:52:08.204327
DEBUG
Wpo\Services\Authentication_Service::skip_authentication -> Found [/admin-ajax.php] thus cancelling session validation for path /wp-admin/admin-ajax.php
You must be logged in to reply to this topic.