Property | Type | Description | |
---|---|---|---|
$decryptedDocument | DomDocument | A DOMDocument class loaded from the SAML Response (Decrypted). | |
$document | DomDocument | A DOMDocument class loaded from the SAML Response. | |
$encrypted | boolean | The response contains an encrypted assertion. | |
$response | string | The decoded, unprocessed XML response provided to the constructor. |
Property | Type | Description | |
---|---|---|---|
$_settings | OneLogin_Saml2_Settings | Settings |
Method | Description | |
---|---|---|
__construct ( OneLogin_Saml2_Settings $settings, string $response ) | Constructs the SAML Response object. | |
checkOneAuthnStatement ( ) : boolean | Checks that the samlp:Response/saml:Assertion/saml:AuthnStatement element exists and is unique. | |
checkOneCondition ( ) : boolean | Checks that the samlp:Response/saml:Assertion/saml:Conditions element exists and is unique. | |
checkStatus ( ) | Checks if the Status is success | |
getAttributes ( ) : array | Gets the Attributes from the AttributeStatement element. | |
getAudiences ( ) : array | Gets the audiences. | |
getError ( ) | * After execute a validation process, if fails this method returns the cause | |
getIssuers ( ) : array | Gets the Issuers (from Response and Assertion). | |
getNameId ( ) : string | Gets the NameID provided by the SAML response from the IdP. | |
getNameIdData ( ) : array | Gets the NameID Data provided by the SAML response from the IdP. | |
getNameIdFormat ( ) : string | Gets the NameID Format provided by the SAML response from the IdP. | |
getSessionIndex ( ) : string | null | Gets the SessionIndex from the AuthnStatement. | |
getSessionNotOnOrAfter ( ) : integer | null | Gets the SessionNotOnOrAfter from the AuthnStatement. | |
isValid ( string | null $requestId = null ) : boolean | Determines if the SAML Response is valid using the certificate. | |
processSignedElements ( ) : array | Verifies the signature nodes: - Checks that are Response or Assertion - Check that IDs and reference URI are unique and consistent. | |
validateNumAssertions ( ) : boolean | Verifies that the document only contains a single Assertion (encrypted or not). | |
validateSignedElements ( $signedElements ) : boolean | Verifies that the document has the expected signed nodes. | |
validateTimestamps ( ) : boolean | Verifies that the document is still valid according Conditions Element. |
Method | Description | |
---|---|---|
_decryptAssertion ( DomNode $dom ) : DOMDocument | Decrypts the Assertion (DOMDocument) | |
_queryAssertion ( string $assertionXpath ) : DOMNodeList | Extracts a node from the DOMDocument (Assertion). |
Method | Description | |
---|---|---|
_query ( string $query ) : DOMNodeList | Extracts nodes that match the query from the DOMDocument (Response Menssage) |
public __construct ( OneLogin_Saml2_Settings $settings, string $response ) | ||
$settings | OneLogin_Saml2_Settings | Settings. |
$response | string | A UUEncoded SAML response from the IdP. |
protected _decryptAssertion ( DomNode $dom ) : DOMDocument | ||
$dom | DomNode | DomDocument |
return | DOMDocument | Decrypted Assertion |
protected _queryAssertion ( string $assertionXpath ) : DOMNodeList | ||
$assertionXpath | string | Xpath Expresion |
return | DOMNodeList | The queried node |
public checkOneAuthnStatement ( ) : boolean | ||
return | boolean | true if the AuthnStatement element exists and is unique |
public checkOneCondition ( ) : boolean | ||
return | boolean | true if the Conditions element exists and is unique |
public getAttributes ( ) : array | ||
return | array | The attributes of the SAML Assertion |
public getAudiences ( ) : array | ||
return | array | @audience The valid audiences of the response |
public getError ( ) |
public getIssuers ( ) : array | ||
return | array | @issuers The issuers of the assertion/response |
public getNameIdData ( ) : array | ||
return | array | Name ID Data (Value, Format, NameQualifier, SPNameQualifier) |
public getNameIdFormat ( ) : string | ||
return | string | Name ID Format |
public getSessionIndex ( ) : string | null | ||
return | string | null | The SessionIndex value |
public getSessionNotOnOrAfter ( ) : integer | null | ||
return | integer | null | The SessionNotOnOrAfter value |
public processSignedElements ( ) : array | ||
return | array | Signed element tags |
public validateNumAssertions ( ) : boolean | ||
return | boolean | TRUE if the document passes. |
public validateSignedElements ( $signedElements ) : boolean | ||
return | boolean |
public validateTimestamps ( ) : boolean | ||
return | boolean |
protected OneLogin_Saml2_Settings $_settings | ||
return | OneLogin_Saml2_Settings |
public DomDocument $decryptedDocument | ||
return | DomDocument |
public DomDocument $document | ||
return | DomDocument |
public bool $encrypted | ||
return | boolean |
public string $response | ||
return | string |