Class Saml2ErrorCodes
java.lang.Object
org.springframework.security.saml2.core.Saml2ErrorCodes
A list of SAML known 2 error codes used during SAML authentication.
- Since:
- 5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe system failed to decrypt an assertion or a name identifier.static final StringAn error happened during validation.static final StringThe assertion was not valid.static final StringResponse destination does not match the request URL.static final StringThe InResponseTo content of the response does not match the ID of the AuthNRequest.static final StringAn Issuer element contained a value that didn't https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=15static final StringRequest is invalid in a general way.static final StringResponse is invalid in a general way.static final StringThe signature of response or assertion was invalid.static final StringThe serialized AuthNRequest could not be deserialized correctly.static final StringThe response data is malformed or incomplete.static final StringThe relying party registration was not found.static final StringThe assertion did not contain a subject element.static final StringSAML Data does not represent a SAML 2 Response object.static final StringThe subject did not contain a user identifier The assertion contained a subject element, but the subject element did not have aNameIDorEncryptedIDelement https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=18 -
Method Summary
-
Field Details
-
UNKNOWN_RESPONSE_CLASS
SAML Data does not represent a SAML 2 Response object. A valid XML object was received, but that object was not a SAML 2 Response object of typeResponseTypeper specification https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=46- See Also:
-
MALFORMED_REQUEST_DATA
The serialized AuthNRequest could not be deserialized correctly.- Since:
- 5.7
- See Also:
-
MALFORMED_RESPONSE_DATA
The response data is malformed or incomplete. An invalid XML object was received, and XML unmarshalling failed.- See Also:
-
INVALID_REQUEST
Request is invalid in a general way.- Since:
- 5.6
- See Also:
-
INVALID_RESPONSE
Response is invalid in a general way.- Since:
- 5.5
- See Also:
-
INVALID_DESTINATION
Response destination does not match the request URL. A SAML 2 response object was received at a URL that did not match the URL stored in the {code Destination} attribute in the Response object. https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=38- See Also:
-
INVALID_ASSERTION
The assertion was not valid. The assertion used for authentication failed validation. Details around the failure will be present in the error description.- See Also:
-
INVALID_SIGNATURE
The signature of response or assertion was invalid. Either the response or the assertion was missing a signature or the signature could not be verified using the system's configured credentials. Most commonly the IDP's X509 certificate.- See Also:
-
SUBJECT_NOT_FOUND
The assertion did not contain a subject element. The subject element, type SubjectType, contains aNameIDor anEncryptedIDthat is used to assign the authenticated principal an identifier, typically a username. https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=18- See Also:
-
USERNAME_NOT_FOUND
The subject did not contain a user identifier The assertion contained a subject element, but the subject element did not have aNameIDorEncryptedIDelement https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=18- See Also:
-
DECRYPTION_ERROR
The system failed to decrypt an assertion or a name identifier. This error code will be thrown if the decryption of either aEncryptedAssertionorEncryptedIDfails. https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=17- See Also:
-
INVALID_ISSUER
An Issuer element contained a value that didn't https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=15- See Also:
-
INTERNAL_VALIDATION_ERROR
An error happened during validation. Used when internal, non classified, errors are caught during the authentication process.- See Also:
-
RELYING_PARTY_REGISTRATION_NOT_FOUND
The relying party registration was not found. The registration ID did not correspond to any relying party registration.- See Also:
-
INVALID_IN_RESPONSE_TO
The InResponseTo content of the response does not match the ID of the AuthNRequest.- Since:
- 5.7
- See Also:
-