Skip to content
Snippets Groups Projects
Commit f215f885 authored by Jacob Christiansen's avatar Jacob Christiansen
Browse files

Multiauth: Added functionality to bypass the select source page if the...

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
parent d8e598cd
No related branches found
No related tags found
No related merge requests found
......@@ -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
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment