Receive an authentication request.
64 {
65
66 if (isset($_REQUEST['cookieTime'])) {
67 $cookieTime = (int)$_REQUEST['cookieTime'];
68 if ($cookieTime + 5 > time()) {
69
70
71
72
74 }
75 }
76
77 if (!isset($_REQUEST['providerId'])) {
79 }
81
82 if (!isset($_REQUEST['shire'])) {
84 }
85 $shire = (string)$_REQUEST['shire'];
86
87 if (isset($_REQUEST['target'])) {
89 } else {
91 }
92
94
97
98 $found = FALSE;
99 foreach (
$spMetadata->getEndpoints(
'AssertionConsumerService') as $ep) {
100 if ($ep['Binding'] !== 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post') {
101 continue;
102 }
103 if ($ep['Location'] !== $shire) {
104 continue;
105 }
106 $found = TRUE;
107 break;
108 }
109 if (!$found) {
110 throw new Exception('Invalid AssertionConsumerService for SP ' .
111 var_export(
$spEntityId, TRUE) .
': ' . var_export($shire, TRUE));
112 }
113
116 'protocol' => 'saml1',
117 ));
118
119 $sessionLostURL = \SimpleSAML\Utils\HTTP::addURLParameters(
121 array('cookieTime' => time()));
122
124 'Responder' => array('sspmod_saml_IdP_SAML1', 'sendResponse'),
127 'saml:shire' => $shire,
129 'saml:AuthnRequestReceivedAt' => microtime(TRUE),
130 );
131
133 }
$metadata['__DYNAMIC:1__']
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
static checkSessionCookie($retryURL=null)
Check for session cookie, and show missing-cookie page if it is missing.
const RESTART
The index in the state array which contains the restart URL.
static log($event, array $data=array())
Notify about an event.
Attribute-related utility methods.