PHP Class sspmod_saml_IdP_SAML2, simplesamlphp

Afficher le fichier Open project: simplesamlphp/simplesamlphp Class Usage Examples

Méthodes publiques

Méthode Description
getAssociationConfig ( SimpleSAML_IdP $idp, array $association ) : SimpleSAML_Configuration Retrieve the metadata for the given SP association.
getLogoutURL ( SimpleSAML_IdP $idp, array $association, string | null $relayState ) : string Retrieve a logout URL for a given logout association.
handleAuthError ( SimpleSAML_Error_Exception $exception, array $state ) Handle authentication error.
receiveAuthnRequest ( SimpleSAML_IdP $idp ) Receive an authentication request.
receiveLogoutMessage ( SimpleSAML_IdP $idp ) Receive a logout message.
sendLogoutRequest ( SimpleSAML_IdP $idp, array $association, string | null $relayState ) Send a logout request to a given association.
sendLogoutResponse ( SimpleSAML_IdP $idp, array $state ) Send a logout response.
sendResponse ( array $state ) Send a response to the SP.

Private Methods

Méthode Description
buildAssertion ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata, array &$state ) : Assertion Build an assertion based on information in the metadata.
buildLogoutRequest ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata, array $association, string | null $relayState ) : SAML2\LogoutResponse Build a logout request based on information in the metadata.
buildResponse ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata, string $consumerURL ) : SAML2\Response Build a authentication response based on information in the metadata.
encodeAttributes ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata, array $attributes ) : array Helper function for encoding attributes.
encryptAssertion ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata, Assertion $assertion ) : Assertion | SAML2\EncryptedAssertion Encrypt an assertion.
generateNameIdValue ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata, array &$state ) : string Calculate the NameID value that should be used.
getAssertionConsumerService ( array $supportedBindings, SimpleSAML_Configuration $spMetadata, string | null $AssertionConsumerServiceURL, string | null $ProtocolBinding, integer | null $AssertionConsumerServiceIndex ) : array Find SP AssertionConsumerService based on parameter in AuthnRequest.
getAttributeNameFormat ( SimpleSAML_Configuration $idpMetadata, SimpleSAML_Configuration $spMetadata ) : string Determine which NameFormat we should use for attributes.

Method Details

getAssociationConfig() public static méthode

Retrieve the metadata for the given SP association.
public static getAssociationConfig ( SimpleSAML_IdP $idp, array $association ) : SimpleSAML_Configuration
$idp SimpleSAML_IdP The IdP the association belongs to.
$association array The SP association.
Résultat SimpleSAML_Configuration Configuration object for the SP metadata.

getLogoutURL() public static méthode

Retrieve a logout URL for a given logout association.
public static getLogoutURL ( SimpleSAML_IdP $idp, array $association, string | null $relayState ) : string
$idp SimpleSAML_IdP The IdP we are sending a logout request from.
$association array The association that should be terminated.
$relayState string | null An id that should be carried across the logout.
Résultat string The logout URL.

handleAuthError() public static méthode

SimpleSAML_Error_Exception $exception The exception.
public static handleAuthError ( SimpleSAML_Error_Exception $exception, array $state )
$exception SimpleSAML_Error_Exception
$state array The error state.

receiveAuthnRequest() public static méthode

Receive an authentication request.
public static receiveAuthnRequest ( SimpleSAML_IdP $idp )
$idp SimpleSAML_IdP The IdP we are receiving it for.

receiveLogoutMessage() public static méthode

Receive a logout message.
public static receiveLogoutMessage ( SimpleSAML_IdP $idp )
$idp SimpleSAML_IdP The IdP we are receiving it for.

sendLogoutRequest() public static méthode

Send a logout request to a given association.
public static sendLogoutRequest ( SimpleSAML_IdP $idp, array $association, string | null $relayState )
$idp SimpleSAML_IdP The IdP we are sending a logout request from.
$association array The association that should be terminated.
$relayState string | null An id that should be carried across the logout.

sendLogoutResponse() public static méthode

Send a logout response.
public static sendLogoutResponse ( SimpleSAML_IdP $idp, array $state )
$idp SimpleSAML_IdP The IdP we are sending a logout request from.
$state array

sendResponse() public static méthode

Send a response to the SP.
public static sendResponse ( array $state )
$state array The authentication state.