| 1 |
<?php |
<?php |
| 2 |
// $Id: openid.module,v 1.2.2.4 2007/07/28 03:05:47 walkah Exp $ |
// $Id: openid.module,v 1.2.2.5 2007/10/14 20:19:21 walkah Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 241 |
|
|
| 242 |
// Now that there is an association created, move on |
// Now that there is an association created, move on |
| 243 |
// to request authentication from the IdP |
// to request authentication from the IdP |
| 244 |
$identity = (!empty($services[0]['delegate'])) ? $services[0]['delegate'] : $claimed_id; |
// First check for LocalID. If not found, check for Delegate. Fall |
| 245 |
|
// back to $claimed_id if neither is found. |
| 246 |
|
if (!empty($services[0]['localid'])) { |
| 247 |
|
$identity = $services[0]['localid']; |
| 248 |
|
} |
| 249 |
|
else if (!empty($services[0]['delegate'])) { |
| 250 |
|
$identity = $services[0]['delegate']; |
| 251 |
|
} |
| 252 |
|
else { |
| 253 |
|
$identity = $claimed_id; |
| 254 |
|
} |
| 255 |
|
|
| 256 |
if (isset($services[0]['types']) && is_array($services[0]['types']) && in_array(OPENID_NS_2_0 .'/server', $services[0]['types'])) { |
if (isset($services[0]['types']) && is_array($services[0]['types']) && in_array(OPENID_NS_2_0 .'/server', $services[0]['types'])) { |
| 257 |
$identity = 'http://openid.net/identifier_select/2.0'; |
$identity = 'http://openid.net/identifier_select/2.0'; |
| 258 |
} |
} |