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

Auth_Default: Add support for exception handling.

This function makes SimpleSAML_Auth_Default save the errorURL given
to the login functionin the state array. This will make the
SimpleSAML_Auth_State class pass exceptions to this url.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1572 44740490-163a-0410-bde0-09ae8108e29a
parent 6c8d9ec8
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,10 @@ class SimpleSAML_Auth_Default {
$state[SimpleSAML_Auth_State::RESTART] = $hints[SimpleSAML_Auth_State::RESTART];
}
if ($errorURL !== NULL) {
$state[SimpleSAML_Auth_State::EXCEPTION_HANDLER_URL] = $errorURL;
}
$as = SimpleSAML_Auth_Source::getById($authId);
if ($as === NULL) {
throw new Exception('Invalid authentication source: ' . $authId);
......
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