Browse Source

Fix delegate and identity being confused in OpenID 2 requests

Closes #21
master
Chris Smith 13 years ago
parent
commit
9f74fa2e59
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      urlbuilder.inc.php

+ 2
- 2
urlbuilder.inc.php View File

@@ -61,8 +61,8 @@
61 61
   public static function buildRequest($type, $base, $delegate, $identity, $returnURL, $handle, $version = 1) {
62 62
    $args = array(
63 63
     'openid.mode' => 'checkid_' . $type,
64
-    'openid.identity' => $version == 1 ? $delegate : $identity,
65
-    'openid.claimed_id' => $delegate,
64
+    'openid.identity' => $delegate,
65
+    'openid.claimed_id' => $identity,
66 66
     ($version == 1 ? 'openid.trust_root' : 'openid.realm') => self::getTrustRoot($returnURL),
67 67
     'openid.return_to' => self::addArguments($returnURL,
68 68
 		array('openid.nonce' => $_SESSION['openid']['nonce']))

Loading…
Cancel
Save