simplesamlphp_auth: fix simplesaml configuration and fix production

This commit is contained in:
Jérôme Schneider 2013-09-09 11:22:01 +02:00
parent 80dda26949
commit 6c0263d454
2 changed files with 2 additions and 12 deletions

View File

@ -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/',

View File

@ -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());
}
/**