I would like to suggest adding a filter to disable SSO when used in a forced SSO login situation. A bypass is needed to allow things like a search spider to scan the site without forcing the spider to login. Add to saml_sso() in functions.php:
function saml_sso() {
if ( (defined( 'WP_CLI' ) && WP_CLI ) || wp_doing_cron() ){
return true;
}
if ( apply_filters('onelogin_disable_saml_sso', false ) ) return true;
Now you can use the filter to recognize an IP or a header to disable the SSO for individual sites.
I would like to suggest adding a filter to disable SSO when used in a forced SSO login situation. A bypass is needed to allow things like a search spider to scan the site without forcing the spider to login. Add to saml_sso() in functions.php:
Now you can use the filter to recognize an IP or a header to disable the SSO for individual sites.