As you’ve pointed out–?Force Login uses the wp_login_url()
function to specify where to send visitors to when they try to access your site.
If you want to change that URL, the wp_login_url() function offers a login_url
filter you could use to change what the login URL is.
/**
* Filters the login URL.
*
* @since 2.8.0
* @since 4.2.0 The <code>$force_reauth</code> parameter was added.
*
* @param string $login_url The login URL. Not HTML-encoded.
* @param string $redirect The path to redirect to on login, if supplied.
* @param bool $force_reauth Whether to force reauthorization, even if a cookie is present.
*/
return apply_filters( 'login_url', $login_url, $redirect, $force_reauth );
However, I recommend you use the v_forcelogin_bypass
filter I suggested above to bypass Force Login for whatever condition necessary to allow this SSO plugin to work.
Also–?if the issue is with the wp_login_url()
function and where it considers the login URL to be, then maybe the SSO plugin should already change/filter the wp_login_url()
function?
Let me know how you get this working, in case others experience the same issue.
Thanks!