Skip to content

Commit 70e8ca7

Browse files
committed
use saml_sls filter
1 parent 4d149f5 commit 70e8ca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onelogin-saml-sso/php/settings.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
* Allow saml_acs URL query variable to be customized.
6262
*/
6363
$saml_acs = apply_filters( 'onelogin_saml_acs', 'saml_acs' );
64+
$saml_sls = apply_filters( 'onelogin_saml_acs', 'saml_sls' );
6465
$acs_endpoint = get_option( 'onelogin_saml_alternative_acs', false ) ? plugins_url( 'alternative_acs.php', dirname( __FILE__ ) ) : wp_login_url() . '?' . $saml_acs;
6566

6667
$settings = array (
@@ -74,7 +75,7 @@
7475
'url' => $acs_endpoint
7576
),
7677
'singleLogoutService' => array (
77-
'url' => get_site_url().'/wp-login.php?saml_sls'
78+
'url' => get_site_url( null, '/wp-login.php?' . $saml_sls )
7879
),
7980
'NameIDFormat' => $opt['NameIDFormat'],
8081
'x509cert' => get_option('onelogin_saml_advanced_settings_sp_x509cert'),

0 commit comments

Comments
 (0)