ProcessResponseAction
in package
Handles processing of SAML Responses from the IDP. Process the SAML Response from the IDP and detect if it's a valid response from the IDP. Validate the certificates and the SAML attributes and Update existing user attributes and groups if necessary. Log the user in.
Table of Contents
- $acsUrl : mixed
- $assertionSigned : mixed
- $certfpFromPlugin : mixed
- $issuer : mixed
- $pluginSettings : mixed
- $responseSigned : mixed
- $samlResponse : mixed
- $spEntityId : mixed
- __construct() : mixed
- execute() : mixed
- validateAssertionSignature() : mixed
- Function checks if the signature in the Assertion element of the SAML response is a valid response. Throw an error otherwise.
- validateDestinationURL() : mixed
- Function validates the Destination in the SAML Response.
- validateIssuerAndAudience() : mixed
- Function validates the Issuer and Audience from the SAML Response. THrows an error if the Issuer and Audience values don't match with the one in the database.
- validateResponseSignature() : mixed
- Function checks if the signature in the Response element of the SAML response is a valid response. Throw an error otherwise.
- validateSignature() : mixed
- Function checks if either of the SAML Response or Assertion is signed or not
- validateStatusCode() : mixed
- Function checks if the status coming in the SAML response is SUCCESS and not a responder or requester
Properties
$acsUrl
private
mixed
$acsUrl
$assertionSigned
private
mixed
$assertionSigned
$certfpFromPlugin
private
mixed
$certfpFromPlugin
$issuer
private
mixed
$issuer
$pluginSettings
private
mixed
$pluginSettings
$responseSigned
private
mixed
$responseSigned
$samlResponse
private
mixed
$samlResponse
$spEntityId
private
mixed
$spEntityId
Methods
__construct()
public
__construct(SamlResponse $samlResponseXML) : mixed
Parameters
- $samlResponseXML : SamlResponse
Return values
mixed —execute()
public
execute() : mixed
Tags
Return values
mixed —validateAssertionSignature()
Function checks if the signature in the Assertion element of the SAML response is a valid response. Throw an error otherwise.
private
validateAssertionSignature( $assertionSignatureData) : mixed
Parameters
Tags
Return values
mixed —validateDestinationURL()
Function validates the Destination in the SAML Response.
private
validateDestinationURL() : mixed
Throws an error if the Destination doesn't match with the one in the database.
Tags
Return values
mixed —validateIssuerAndAudience()
Function validates the Issuer and Audience from the SAML Response. THrows an error if the Issuer and Audience values don't match with the one in the database.
private
validateIssuerAndAudience() : mixed
Tags
Return values
mixed —validateResponseSignature()
Function checks if the signature in the Response element of the SAML response is a valid response. Throw an error otherwise.
private
validateResponseSignature( $responseSignatureData) : mixed
Parameters
Tags
Return values
mixed —validateSignature()
Function checks if either of the SAML Response or Assertion is signed or not
private
validateSignature( $responseSignatureData, $assertionSignatureData) : mixed
Parameters
Tags
Return values
mixed —validateStatusCode()
Function checks if the status coming in the SAML response is SUCCESS and not a responder or requester
private
validateStatusCode() : mixed