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

saml2: Make SP authentication source throw a detailed exception when receiving...

saml2: Make SP authentication source throw a detailed exception when receiving an error from the IdP.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1580 44740490-163a-0410-bde0-09ae8108e29a
parent f33b6864
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,7 @@ $result = $authnResponse->process();
/* Check status code. */
if($result === FALSE) {
/* Not successful. */
$statusCode = $authnResponse->findstatus();
throw new Exception('Error authenticating: ' . $statusCode);
SimpleSAML_Auth_State::throwException($state, $authnResponse->getStatus()->toException());
}
/* The response should include the entity id of the IdP. */
......
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