simplesamlphp_auth: fix simplesaml configuration and fix production
This commit is contained in:
parent
80dda26949
commit
6c0263d454
|
@ -28,7 +28,6 @@ $config = array (
|
|||
// 'baseurlpath' => 'https://www-test.entrouvert.montpellier-agglo.com/simplesamlphp/',
|
||||
// dev
|
||||
// 'baseurlpath' => 'simplesamlphp/',
|
||||
'baseurlpath' => 'https://www-test.entrouvert.montpellier-agglo.com/simplesamlphp/',
|
||||
'certdir' => 'cert/',
|
||||
'loggingdir' => 'log/',
|
||||
'datadir' => 'data/',
|
||||
|
|
|
@ -175,20 +175,11 @@ function simplesamlphp_auth_loginpage() {
|
|||
}
|
||||
|
||||
if (($_simplesamlphp_auth_as->isAuthenticated()) && (!empty($_SERVER['HTTPS'])) ) {
|
||||
return drupal_goto("http://${_SERVER['SERVER_NAME']}/");
|
||||
return drupal_goto("http://${_SERVER['SERVER_NAME']}/saml_login");
|
||||
}
|
||||
|
||||
// If a ReturnTo has been set.
|
||||
if ($gotourl) {
|
||||
drupal_goto(str_replace($base_url . '/', '', $gotourl));
|
||||
}
|
||||
else {
|
||||
drupal_goto('user/' . $user->uid);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return drupal_goto(base_path());
|
||||
return drupal_goto(base_path());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in New Issue