diff --git a/modules/multiauth/lib/Auth/Source/MultiAuth.php b/modules/multiauth/lib/Auth/Source/MultiAuth.php index 6bf557235f00390fdf1f746c126b7f3d13f39c34..7bfbe154f20af5ad3edf390629769c319ecb4e24 100644 --- a/modules/multiauth/lib/Auth/Source/MultiAuth.php +++ b/modules/multiauth/lib/Auth/Source/MultiAuth.php @@ -81,7 +81,13 @@ class sspmod_multiauth_Auth_Source_MultiAuth extends SimpleSAML_Auth_Source { saved state array as a parameter to the login form */ $url = SimpleSAML_Module::getModuleURL('multiauth/selectsource.php'); $params = array('AuthState' => $id); - SimpleSAML_Utilities::redirect($url, $params); + + // Allowes the user to specify the auth souce to be used + if(isset($_GET['source'])) { + $params['source'] = $_GET['source']; + } + + SimpleSAML_Utilities::redirect($url, $params); /* The previous function never returns, so this code is never executed */ @@ -148,4 +154,4 @@ class sspmod_multiauth_Auth_Source_MultiAuth extends SimpleSAML_Auth_Source { } -?> \ No newline at end of file +?>