Closed umbros closed 5 years ago
As in the documentation, Shibboleth SP already supports errors management
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPErrors
In case of error, the SP "encodes" the error in a query string as in the following (not normative) example
http://example.org/error?now=Tue Jan 31 11:32:41 2012
&requestURL=https://example.org/Shibboleth.sso/SAML2/POST
&errorType=opensaml::FatalProfileException
&errorText=SAML response contained an error.
&RelayState=https://example.org/secure/getattrs
&entityID=urn:mace:incommon:idp.protectnetwork.org
&statusCode=urn:oasis:names:tc:SAML:2.0:status:Responder
&statusCode2=urn:oasis:names:tc:SAML:2.0:status:AuthnFailed
The GET
destination endpoint can be configured in shibboleth.xml
as follows
...
<Errors supportContact="help@example.org" redirectErrors="http://example.org/error" />
...
The end-user is in charge to implement his own error management page according to the needs. For instance
Is necessary to implement the management of SPID custom error codes:
ex: