PHP 클래스 sspmod_saml_IdP_SAML2, simplesamlphp

파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

getAssociationConfig() 공개 정적인 메소드

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.
리턴 SimpleSAML_Configuration Configuration object for the SP metadata.

getLogoutURL() 공개 정적인 메소드

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.
리턴 string The logout URL.

handleAuthError() 공개 정적인 메소드

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() 공개 정적인 메소드

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

receiveLogoutMessage() 공개 정적인 메소드

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

sendLogoutRequest() 공개 정적인 메소드

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() 공개 정적인 메소드

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() 공개 정적인 메소드

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