Skip to content
Snippets Groups Projects
Commit 08385796 authored by Olav Morken's avatar Olav Morken
Browse files

Auth_Default: Add initLogoutReturn().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2019 44740490-163a-0410-bde0-09ae8108e29a
parent f1a8182b
No related branches found
No related tags found
No related merge requests found
...@@ -103,11 +103,11 @@ class SimpleSAML_Auth_Default { ...@@ -103,11 +103,11 @@ class SimpleSAML_Auth_Default {
* Start logout. * Start logout.
* *
* This function starts a logout operation from the current authentication source. This function * This function starts a logout operation from the current authentication source. This function
* never returns. * will return if the logout operation does not require a redirect.
* *
* @param string $returnURL The URL we should redirect the user to after logging out. * @param string $returnURL The URL we should redirect the user to after logging out.
*/ */
public static function initLogout($returnURL) { public static function initLogoutReturn($returnURL) {
assert('is_string($returnURL)'); assert('is_string($returnURL)');
$session = SimpleSAML_Session::getInstance(); $session = SimpleSAML_Session::getInstance();
...@@ -126,6 +126,21 @@ class SimpleSAML_Auth_Default { ...@@ -126,6 +126,21 @@ class SimpleSAML_Auth_Default {
} }
$as->logout($state); $as->logout($state);
}
/**
* Start logout.
*
* This function starts a logout operation from the current authentication source. This function
* never returns.
*
* @param string $returnURL The URL we should redirect the user to after logging out.
*/
public static function initLogout($returnURL) {
assert('is_string($returnURL)');
self::initLogoutReturn($returnURL);
self::logoutCompleted($state); self::logoutCompleted($state);
} }
......
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