PHP Класс SimpleSAML_Bindings_Shib13_HTTPPost, simplesamlphp

Автор: Andreas Åkre Solberg, UNINETT AS. ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( SimpleSAML_Configuration $configuration, SimpleSAML_Metadata_MetaDataStorageHandler $metadatastore ) Constructor for the SimpleSAML_Bindings_Shib13_HTTPPost class.
decodeResponse ( array $post ) : SimpleSAML_XML_Shib13_AuthnResponse Decode a received response.
sendResponse ( string $response, SimpleSAML_Configuration $idpmd, SimpleSAML_Configuration $spmd, string | null $relayState, string $shire ) Send an authenticationResponse using HTTP-POST.

Описание методов

__construct() публичный Метод

Constructor for the SimpleSAML_Bindings_Shib13_HTTPPost class.
public __construct ( SimpleSAML_Configuration $configuration, SimpleSAML_Metadata_MetaDataStorageHandler $metadatastore )
$configuration SimpleSAML_Configuration The configuration to use.
$metadatastore SimpleSAML_Metadata_MetaDataStorageHandler A store where to find metadata.

decodeResponse() публичный Метод

Decode a received response.
public decodeResponse ( array $post ) : SimpleSAML_XML_Shib13_AuthnResponse
$post array POST data received.
Результат SimpleSAML_XML_Shib13_AuthnResponse The response decoded into an object.

sendResponse() публичный Метод

Send an authenticationResponse using HTTP-POST.
public sendResponse ( string $response, SimpleSAML_Configuration $idpmd, SimpleSAML_Configuration $spmd, string | null $relayState, string $shire )
$response string The response which should be sent.
$idpmd SimpleSAML_Configuration The metadata of the IdP which is sending the response.
$spmd SimpleSAML_Configuration The metadata of the SP which is receiving the response.
$relayState string | null The relaystate for the SP.
$shire string The shire which should receive the response.