Skip to content

Commit 33b4e1c

Browse files
committed
allow saml_acs to be filtered to something else
1 parent ecf2001 commit 33b4e1c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111

1212
function saml_checker() {
13-
if (isset($_GET['saml_acs'])) {
13+
/**
14+
* Allow saml_acs URL query variable to be customized.
15+
*/
16+
$saml_acs = apply_filters( 'onelogin_saml_acs', 'saml_acs' );
17+
if ( isset( $_GET[ $saml_acs ] ) ) {
1418
saml_acs();
1519
}
1620
else if (isset($_GET['saml_sls'])) {

onelogin-saml-sso/php/settings.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
}
5858
}
5959

60-
$acs_endpoint = get_option('onelogin_saml_alternative_acs', false) ? plugins_url( 'alternative_acs.php', dirname( __FILE__ ) ) : wp_login_url() . '?saml_acs';
60+
/**
61+
* Allow saml_acs URL query variable to be customized.
62+
*/
63+
$saml_acs = apply_filters( 'onelogin_saml_acs', 'saml_acs' );
64+
$acs_endpoint = get_option( 'onelogin_saml_alternative_acs', false ) ? plugins_url( 'alternative_acs.php', dirname( __FILE__ ) ) : wp_login_url() . '?' . $saml_acs;
6165

6266
$settings = array (
6367

0 commit comments

Comments
 (0)