Skip to content

Commit f215f88

Browse files
author
Jacob Christiansen
committed
Multiauth: Added functionality to bypass the select source page if the authsource id is known. Append 'source=AUTHSOURCEID' to query to apply.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2245 44740490-163a-0410-bde0-09ae8108e29a
1 parent d8e598c commit f215f88

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

modules/multiauth/lib/Auth/Source/MultiAuth.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ public function authenticate(&$state) {
8181
saved state array as a parameter to the login form */
8282
$url = SimpleSAML_Module::getModuleURL('multiauth/selectsource.php');
8383
$params = array('AuthState' => $id);
84-
SimpleSAML_Utilities::redirect($url, $params);
84+
85+
// Allowes the user to specify the auth souce to be used
86+
if(isset($_GET['source'])) {
87+
$params['source'] = $_GET['source'];
88+
}
89+
90+
SimpleSAML_Utilities::redirect($url, $params);
8591

8692
/* The previous function never returns, so this code is never
8793
executed */
@@ -148,4 +154,4 @@ public function logout(&$state) {
148154

149155
}
150156

151-
?>
157+
?>

0 commit comments

Comments
 (0)