title: Log-in the user with LightOpenID
body: <p>Hello<br>
  I have downloaded LightOpenID (http://gitorious.org/lightopenid) few hours ago but still can't figure out how to make it work.<br>
  I got this google example saved in <strong>test.php</strong> file  </p>
  
  <pre><code>&lt;?php
  require '../lib/init.php';
  require '../lib/openID/openid.php';
  
  try {
      if(!isset($_GET['openid_mode'])) {
          if(isset($_GET['login'])) {
              $openid = new LightOpenID;
              $openid-&gt;identity = 'https://www.google.com/accounts/o8/id';
              header('Location: ' . $openid-&gt;authUrl());
          }
  ?&gt;
  &lt;form action="?login" method="post"&gt;
      &lt;button&gt;Login with Google&lt;/button&gt;
  &lt;/form&gt;
  &lt;?php
      } elseif($_GET['openid_mode'] == 'cancel') {
          echo 'User has canceled authentication!';
      } else {
          $openid = new LightOpenID;
          echo 'User ' . ($openid-&gt;validate() ? $openid-&gt;identity . ' has ' : 'has not ') . 'logged in.';
      }
  } catch(ErrorException $e) {
      echo $e-&gt;getMessage();
  }
  echo '&lt;pre&gt;'.print_r($openid,true).'&lt;/pre&gt;';
  ?&gt;
  </code></pre>
  
  <p>Where init.php is init file for my page (constants, classes, functions, db connection etc.).<br>
  After running this code I got button with label "Login with Google" and after pressing it  </p>
  
  <pre><code>echo '&lt;pre&gt;'.print_r($openid,true).'&lt;/pre&gt;';
  </code></pre>
  
  <p>give some info about the $openid object  </p>
  
  <blockquote>
    <p>LightOpenID Object (
        [returnUrl] => <a href="http://kur.com/openid.php">http://kur.com/openid.php</a>
        [required] => Array
            (
            )</p>
  
  <pre><code>[optional] =&gt; Array
      (
      )
  
  [identity:LightOpenID:private] =&gt; https://www.google.com/accounts/o8/id
  [claimed_id:LightOpenID:private] =&gt; https://www.google.com/accounts/o8/id
  [server:protected] =&gt; https://www.google.com/accounts/o8/ud
  [version:protected] =&gt; 2
  [trustRoot:protected] =&gt; http://kur.com
  [aliases:protected] =&gt; 
  [identifier_select:protected] =&gt; 1
  [ax:protected] =&gt; 1
  [sreg:protected] =&gt; 
  [data:protected] =&gt; Array
      (
          [login] =&gt; 
      )
  </code></pre>
    
    <p>)</p>
  </blockquote>
  
  <p>...nothing special... and thats it...<br>
  I spend lot of the time searching for tutorials in google, but can't find even one.  Can you please help me.<br>
  How to log in the user ?<br>
  From where I must get logged user info (as username, mail) ?<br>
  I have never been using open ID and I'm confused....<br>
  Thanks in advance</p>