Browse Source

Pass version correctly and cope properly with identifier select

tags/0.5
Chris Smith 15 years ago
parent
commit
c572b479f1
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      processor.php

+ 2
- 1
processor.php View File

@@ -244,7 +244,8 @@
244 244
  function processPositiveResponse($valid) {
245 245
   if ($_REQUEST['openid_identity'] != $_SESSION['openid']['delegate']) {
246 246
    if ($_SESSION['openid']['delegate'] == 'http://specs.openid.net/auth/2.0/identifier_select') {
247
-    $_SESSION['openid']['delegate'] = $_REQUEST['openid_identity']; 
247
+    $_SESSION['openid']['identity'] = $_REQUEST['openid_identity']; 
248
+    $_SESSION['openid']['delegate'] = $_REQUEST['openid_claimed_id'];
248 249
    } else {
249 250
      error('diffid', 'Identity provider validated wrong identity. Expected it to '
250 251
   	             . 'validate ' . $_SESSION['openid']['delegate'] . ' but it '

Loading…
Cancel
Save