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

Auth_Default: Remove unused loginFailed handler.

This patch removes the loginFailed handler in preparation for replacing it
with a new handler based on the exception handler code added to the
SimpleSAML_Auth_State class.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1571 44740490-163a-0410-bde0-09ae8108e29a
parent e4b0a693
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,6 @@ class SimpleSAML_Auth_Default { ...@@ -36,7 +36,6 @@ class SimpleSAML_Auth_Default {
'SimpleSAML_Auth_Default.ReturnURL' => $returnURL, 'SimpleSAML_Auth_Default.ReturnURL' => $returnURL,
'SimpleSAML_Auth_Default.ErrorURL' => $errorURL, 'SimpleSAML_Auth_Default.ErrorURL' => $errorURL,
'LoginCompletedHandler' => array(get_class(), 'loginCompleted'), 'LoginCompletedHandler' => array(get_class(), 'loginCompleted'),
'LoginFailedHandler' => array(get_class(), 'loginFailed'),
'LogoutCallback' => array(get_class(), 'logoutCallback'), 'LogoutCallback' => array(get_class(), 'logoutCallback'),
'LogoutCallbackState' => array( 'LogoutCallbackState' => array(
'SimpleSAML_Auth_Default.logoutSource' => $authId, 'SimpleSAML_Auth_Default.logoutSource' => $authId,
...@@ -95,34 +94,6 @@ class SimpleSAML_Auth_Default { ...@@ -95,34 +94,6 @@ class SimpleSAML_Auth_Default {
} }
/**
* Called when a login operation fails.
*
* @param array $state The state array.
* @param string $statusCode A status code, in the form of an URI, which indicates why the login failed.
* @param string $statusMessage A text which describes why the login failed.
*/
public static function loginFailed($state, $statusCode, $statusMessage) {
assert('is_array($state)');
assert('array_key_exists("SimpleSAML_Auth_Default.ErrorURL", $state)');
assert('is_string($statusCode)');
assert('is_string($statusMessage)');
$url = $state['SimpleSAML_Auth_Default.ErrorURL'];
if ($url === NULL) {
/* We don't have an error handler. Show an error page. */
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'RESPONSESTATUSNOSUCCESS',
new Exception('StatusCode = \'' . $statusCode . '\'; StatusMessage = \'' .
$statusMessage . '\';'));
}
$info = array('StatusCode' => $statusCode, 'StatusMessage' => $statusMessage);
/* Redirect... */
SimpleSAML_Utilities::redirect($url, $info);
}
/** /**
* Start logout. * Start logout.
* *
......
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