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 64 of file SAML1.php.
References $metadata, $spEntityId, $spMetadata, $state, $target, array, SimpleSAML\Utils\HTTP\checkSessionCookie(), SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), SimpleSAML_IdP\handleAuthenticationRequest(), SimpleSAML\Logger\info(), SimpleSAML_Stats\log(), SimpleSAML_Auth_State\RESTART, string, and time.
66 if (isset($_REQUEST[
'cookieTime'])) {
67 $cookieTime = (int)$_REQUEST[
'cookieTime'];
68 if ($cookieTime + 5 >
time()) {
77 if (!isset($_REQUEST[
'providerId'])) {
82 if (!isset($_REQUEST[
'shire'])) {
85 $shire = (
string)$_REQUEST[
'shire'];
87 if (isset($_REQUEST[
'target'])) {
99 foreach (
$spMetadata->getEndpoints(
'AssertionConsumerService') as $ep) {
100 if ($ep[
'Binding'] !==
'urn:oasis:names:tc:SAML:1.0:profiles:browser-post') {
103 if ($ep[
'Location'] !== $shire) {
110 throw new Exception(
'Invalid AssertionConsumerService for SP ' .
111 var_export(
$spEntityId, TRUE) .
': ' . var_export($shire, TRUE));
116 'protocol' =>
'saml1',
119 $sessionLostURL = \SimpleSAML\Utils\HTTP::addURLParameters(
124 'Responder' =>
array(
'sspmod_saml_IdP_SAML1',
'sendResponse'),
127 'saml:shire' => $shire,
129 '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.
Create styles array
The data for the language used.
static checkSessionCookie($retryURL=null)
Check for session cookie, and show missing-cookie page if it is missing.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static log($event, array $data=array())
Notify about an event.