Receive an authentication request.
66 {
67 if (isset($_REQUEST['cookieTime'])) {
68 $cookieTime = (int)$_REQUEST['cookieTime'];
69 if ($cookieTime + 5 > time()) {
70
71
72
73
75 }
76 }
77
78 if (!isset($_REQUEST['providerId'])) {
80 }
82
83 if (!isset($_REQUEST['shire'])) {
85 }
86 $shire = (string)$_REQUEST['shire'];
87
88 if (isset($_REQUEST['target'])) {
90 } else {
92 }
93
95
98
99 $found = false;
100 foreach (
$spMetadata->getEndpoints(
'AssertionConsumerService') as $ep) {
101 if ($ep['Binding'] !== 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post') {
102 continue;
103 }
104 if ($ep['Location'] !== $shire) {
105 continue;
106 }
107 $found = true;
108 break;
109 }
110 if (!$found) {
111 throw new Exception('Invalid AssertionConsumerService for SP ' .
112 var_export(
$spEntityId,
true) .
': ' . var_export($shire,
true));
113 }
114
117 'protocol' => 'saml1',
118 ));
119
120 $sessionLostURL = \SimpleSAML\Utils\HTTP::addURLParameters(
122 array('cookieTime' => time()));
123
125 'Responder' => array('sspmod_saml_IdP_SAML1', 'sendResponse'),
128 'saml:shire' => $shire,
130 'saml:AuthnRequestReceivedAt' => microtime(true),
131 );
132
134 }
$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.