Definition at line 9 of file SAML1.php.
static sspmod_saml_IdP_SAML1::receiveAuthnRequest |
( |
SimpleSAML_IdP |
$idp | ) |
|
|
static |
Receive an authentication request.
- Parameters
-
Definition at line 65 of file SAML1.php.
References $metadata, $spEntityId, $spMetadata, $state, $target, SimpleSAML\Utils\HTTP\checkSessionCookie(), SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), SimpleSAML_IdP\handleAuthenticationRequest(), SimpleSAML\Logger\info(), SimpleSAML_Stats\log(), and SimpleSAML_Auth_State\RESTART.
67 if (isset($_REQUEST[
'cookieTime'])) {
68 $cookieTime = (int)$_REQUEST[
'cookieTime'];
69 if ($cookieTime + 5 > time()) {
78 if (!isset($_REQUEST[
'providerId'])) {
83 if (!isset($_REQUEST[
'shire'])) {
86 $shire = (string)$_REQUEST[
'shire'];
88 if (isset($_REQUEST[
'target'])) {
100 foreach (
$spMetadata->getEndpoints(
'AssertionConsumerService') as $ep) {
101 if ($ep[
'Binding'] !==
'urn:oasis:names:tc:SAML:1.0:profiles:browser-post') {
104 if ($ep[
'Location'] !== $shire) {
111 throw new Exception(
'Invalid AssertionConsumerService for SP ' .
112 var_export(
$spEntityId,
true) .
': ' . var_export($shire,
true));
117 'protocol' =>
'saml1',
120 $sessionLostURL = \SimpleSAML\Utils\HTTP::addURLParameters(
122 array(
'cookieTime' => time()));
125 'Responder' => array(
'sspmod_saml_IdP_SAML1',
'sendResponse'),
128 'saml:shire' => $shire,
130 'saml:AuthnRequestReceivedAt' => microtime(
true),
handleAuthenticationRequest(array &$state)
Process authentication requests.
const RESTART
The index in the state array which contains the restart URL.
$metadata['__DYNAMIC:1__']
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Attribute-related utility methods.
static checkSessionCookie($retryURL=null)
Check for session cookie, and show missing-cookie page if it is missing.
static log($event, array $data=array())
Notify about an event.