Skip to content
Snippets Groups Projects
Commit 9179f3c2 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Remove getAuthnRequest() from SimpleSAML_Session.

parent c52b4b96
No related branches found
No related tags found
No related merge requests found
......@@ -309,40 +309,6 @@ class SimpleSAML_Session {
}
/**
* This method retrieves from session a cache of a specific Authentication Request
* The complete request is not stored, instead the values that will be needed later
* are stored in an assoc array.
*
* @param string $protocol saml2 or shib13
* @param string $requestid The request id used as a key to lookup the cache.
* @throws Exception If the method can't find a cached version of the request.
* @return array Returns an assoc array of cached variables associated with the
* authentication request.
* @deprecated
*/
public function getAuthnRequest($protocol, $requestid) {
SimpleSAML_Logger::debug('Library - Session: Get authnrequest from cache ' . $protocol . ' time:' . time() .
' id: '. $requestid );
$type = 'AuthnRequest-' . $protocol;
$authnRequest = $this->getData($type, $requestid);
if($authnRequest === NULL) {
/*
* Could not find requested ID. Throw an error. Could be that it is never set, or that it is deleted
* due to age.
*/
throw new Exception('Could not find cached version of authentication request with ID ' . $requestid .
' (' . $protocol . ')');
}
return $authnRequest;
}
/**
* Set remember me expire time.
*
......
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