SAML 2 Authentication Response
__construct(\OneLogin_Saml2_Settings $settings, string $response)
\OneLogin_Saml2_SettingsSettings.
stringA UUEncoded SAML response from the IdP.
isValid(string $requestId = null) : bool
| throws | |
|---|---|
stringThe ID of the AuthNRequest sent by this SP to the IdP
boolValidate 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
arrayName ID Data (Value, Format, NameQualifier, SPNameQualifier)
getNameId() : string
stringName ID Value
getSessionNotOnOrAfter() : \DateTime|null
Could be used to set the local session expiration
\DateTime|nullThe 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|nullThe SessionIndex value
getAttributes() : array
arrayThe attributes of the SAML Assertion
validateNumAssertions() : bool
boolTRUE if the document passes.
validateTimestamps() : bool
bool
                                                                    getError() : string
stringCause
_queryAssertion(string $assertionXpath) : \DOMNodeList
| throws | |
|---|---|
stringXpath Expresion
\DOMNodeListThe queried node
_query(string $query) : \DOMNodeList
stringXpath Expresion
\DOMNodeListThe queried nodes
_decryptAssertion(string $dom) : \DOMDocument
| throws | |
|---|---|
stringDomDocument
\DOMDocumentDecrypted 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