/[drupal]/contributions/modules/openid/openid.module
ViewVC logotype

Diff of /contributions/modules/openid/openid.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.5, Sun Oct 14 20:19:21 2007 UTC revision 1.2.2.6, Sun Oct 14 20:29:27 2007 UTC
# Line 1  Line 1 
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
# Line 241  function openid_begin($claimed_id, $retu Line 241  function openid_begin($claimed_id, $retu
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    }    }

Legend:
Removed from v.1.2.2.5  
changed lines
  Added in v.1.2.2.6

  ViewVC Help
Powered by ViewVC 1.1.2