Convert NameID to attribute.
107 {
108 assert('is_array($state)');
109 assert('isset($state["Source"]["entityid"])');
110 assert('isset($state["Destination"]["entityid"])');
111
112 if (!isset(
$state[
'saml:sp:NameID'])) {
113 return;
114 }
115
116 $rep =
$state[
'saml:sp:NameID'];
117 assert(isset($rep->value));
118
119 $rep->{'%'} = '%';
120 if (!isset($rep->Format)) {
122 }
123 if (!isset($rep->NameQualifier)) {
124 $rep->NameQualifier =
$state[
'Source'][
'entityid'];
125 }
126 if (!isset($rep->SPNameQualifier)) {
127 $rep->SPNameQualifier =
$state[
'Destination'][
'entityid'];
128 }
129
130 $value = '';
131 $isString = true;
132 foreach ($this->format as $element) {
133 if ($isString) {
134 $value .= $element;
135 } else {
136 $value .= $rep->$element;
137 }
138 $isString = !$isString;
139 }
140
142 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
const NAMEID_UNSPECIFIED
Unspecified NameID format.