diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2015-08-25 15:39:54 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2015-08-25 15:39:54 +0200 |
commit | 75f5dcce58a4b4d606e5f20b3b21225fe43f1760 (patch) | |
tree | 0d44e8e7029984c74fadc4f07b5d4ba2c9924cd7 /lib | |
parent | 5128993bab0f0705d96a44ba6a5da37d3ef7f9a5 (diff) | |
download | simplesamlphp-75f5dcce58a4b4d606e5f20b3b21225fe43f1760.zip simplesamlphp-75f5dcce58a4b4d606e5f20b3b21225fe43f1760.tar.gz simplesamlphp-75f5dcce58a4b4d606e5f20b3b21225fe43f1760.tar.bz2 |
Refactor SimpleSAML_Auth_State::extractPersistentAuthState() to getPersistentAuthData() to avoid confusions around the behaviour of this method.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SimpleSAML/Auth/Default.php | 6 | ||||
-rw-r--r-- | lib/SimpleSAML/Auth/Source.php | 2 | ||||
-rw-r--r-- | lib/SimpleSAML/Auth/State.php | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/SimpleSAML/Auth/Default.php b/lib/SimpleSAML/Auth/Default.php index d5553aa..4541f02 100644 --- a/lib/SimpleSAML/Auth/Default.php +++ b/lib/SimpleSAML/Auth/Default.php @@ -27,11 +27,11 @@ class SimpleSAML_Auth_Default { /** * @deprecated This method will be removed in SSP 2.0. Please use - * SimpleSAML_Auth_State::extractPersistentAuthState() instead. + * SimpleSAML_Auth_State::getPersistentAuthData() instead. */ public static function extractPersistentAuthState(array &$state) { - return SimpleSAML_Auth_State::extractPersistentAuthState($state); + return SimpleSAML_Auth_State::getPersistentAuthData($state); } @@ -50,7 +50,7 @@ class SimpleSAML_Auth_Default { /* Save session state. */ $session = SimpleSAML_Session::getSessionFromRequest(); $authId = $state['SimpleSAML_Auth_Default.id']; - $session->doLogin($authId, SimpleSAML_Auth_State::extractPersistentAuthState($state)); + $session->doLogin($authId, SimpleSAML_Auth_State::getPersistentAuthData($state)); if (is_string($return)) { /* Redirect... */ diff --git a/lib/SimpleSAML/Auth/Source.php b/lib/SimpleSAML/Auth/Source.php index 70b8cf7..4637f8b 100644 --- a/lib/SimpleSAML/Auth/Source.php +++ b/lib/SimpleSAML/Auth/Source.php @@ -216,7 +216,7 @@ abstract class SimpleSAML_Auth_Source // save session state $session = SimpleSAML_Session::getSessionFromRequest(); $authId = $state['SimpleSAML_Auth_Default.id']; - $session->doLogin($authId, SimpleSAML_Auth_State::extractPersistentAuthState($state)); + $session->doLogin($authId, SimpleSAML_Auth_State::getPersistentAuthData($state)); if (is_string($return)) { // redirect... \SimpleSAML\Utils\HTTP::redirectTrustedURL($return); diff --git a/lib/SimpleSAML/Auth/State.php b/lib/SimpleSAML/Auth/State.php index 5d6ebc6..a756535 100644 --- a/lib/SimpleSAML/Auth/State.php +++ b/lib/SimpleSAML/Auth/State.php @@ -92,12 +92,12 @@ class SimpleSAML_Auth_State { /** - * Extract the persistent authentication state from the state array. + * Get the persistent authentication state from the state array. * * @param array $state The state array to analyze. * @return array The persistent authentication state. */ - public static function extractPersistentAuthState(array $state) + public static function getPersistentAuthData(array $state) { // save persistent authentication data $persistent = array(); |