title: Codeigniter OpenID Authentication
body: <p>I'm new to the OpenID concept and recently tried implementing an <a href="http://www.codeigniter.com/wiki/OpenID" rel="nofollow">OpenID Library</a> for CodeIgniter using the <a href="http://www.janrain.com/openid-enabled" rel="nofollow">JanRain</a> PHP 5 system. However ran into some issues while retrieving simple data from sites like Google and Yahoo...</p>
  
  <p>My config file for the OpenID Library looks like this:</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
      $config['openid_storepath'] = 'tmp';
      $config['openid_policy'] = 'test/policy';
      $config['openid_required'] = array('email');
      $config['openid_optional'] = array('fullname');
      $config['openid_request_to'] = 'test/check';
  ?&gt;
  </code></pre>
  
  <p>Yet, I'm unable to obtain either the 'email' or 'fullname' value.  I've tried filling in other fields (like 'nickname'), but that didn't yield results either. In addition, many other options specified in <a href="http://documentation.janrain.com/profiledata" rel="nofollow">JanRain docs</a> (such as 'verifiedEmail' and 'preferredUsername') merely caused an SREG error.</p>
  
  <p>The authentications are successful, as they return a success message, but how can I access the information I've requested?</p>
  
  <p>Edit: Here is the return URL:</p>
  
  <pre><code>http://www.{Site}.net/v2/test/check?janrain_nonce=2011-12-10T05:53:01ZFXVT02&amp;openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&amp;openid.mode=id_res&amp;openid.return_to=http%3A%2F%2Fwww.{Site}.net%2Fv2%2Ftest%2Fcheck%3Fjanrain_nonce%3D2011-12-10T05%3A53%3A01ZFXVT02&amp;openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2F{Token}%23df6f7&amp;openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2F{Token}&amp;openid.assoc_handle={Handle}&amp;openid.realm=http%3A%2F%2Fwww.{Site}.net%2Fv2%2F&amp;openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&amp;openid.response_nonce=2011-12-10T05%3A53%3{Nonce Token}&amp;openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cpape.auth_level.nist&amp;openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&amp;openid.pape.auth_level.nist=0&amp;openid.sig=CUa39ZjhGE8nWc7TMvbS8UFlwjQ%3D
  </code></pre>
  
  <p>Thanks!</p>