SAML 2 Authentication Response
__construct(\OneLogin_Saml2_Settings $settings, string $response)
\OneLogin_Saml2_Settings
Settings.
string
A UUEncoded SAML response from the IdP.
isValid(string $requestId = null) : bool
throws | |
---|---|
string
The ID of the AuthNRequest sent by this SP to the IdP
bool
Validate the document
checkStatus()
throws |
If status is not success |
---|---|
getAudiences() : array
array
@audience The valid audiences of the response
getIssuers() : array
array
@issuers The issuers of the assertion/response
getNameIdData() : array
array
Name ID Data (Value, Format, NameQualifier, SPNameQualifier)
getNameId() : string
string
Name ID Value
getSessionNotOnOrAfter() : \DateTime|null
Could be used to set the local session expiration
\DateTime|null
The SessionNotOnOrAfter value
getSessionIndex() : string|null
Could be used to be stored in the local session in order to be used in a future Logout Request that the SP could send to the SP, to set what specific session must be deleted
string|null
The SessionIndex value
getAttributes() : array
array
The attributes of the SAML Assertion
validateNumAssertions() : bool
bool
TRUE if the document passes.
validateTimestamps() : bool
bool
getError() : string
string
Cause
_queryAssertion(string $assertionXpath) : \DOMNodeList
throws | |
---|---|
string
Xpath Expresion
\DOMNodeList
The queried node
_query(string $query) : \DOMNodeList
string
Xpath Expresion
\DOMNodeList
The queried nodes
_decryptAssertion(string $dom) : \DOMDocument
throws | |
---|---|
string
DomDocument
\DOMDocument
Decrypted Assertion
_settings : \OneLogin_Saml2_Settings
var | |
---|---|
\OneLogin_Saml2_Settings
response : string
var | |
---|---|
string
document : \DomDocument
var | |
---|---|
\DomDocument
decryptedDocument : \DomDocument
var | |
---|---|
\DomDocument
encrypted : boolean
var | |
---|---|
boolean