Note that there are some explanatory texts on larger screens.

plurals
  1. POlightopenID for university Google-hosted email
    primarykey
    data
    text
    <p>I am currently experimenting with implementing an openID for a small website for college. I am very new to this and have followed up with related articles. I have downloaded lightopenId and uploaded the folder to my webserver. My school has google hosting their email service so typical email addresses are: like this <code>studentlastname@myuniversity.edu</code>. We can login through <code>mail.google.com</code> or a custom web page designed by google specifically for our login <code>mail.google.com/a/oakland.edu/</code>.</p> <p>Instead of having users be redirected to the general <code>$openid-&gt;identity = 'https://www.google.com/accounts/o8/id';</code> can I have the users directed to the custom university google hosted page to authenticate? </p> <p>Gives me error:</p> <blockquote> <p>No OpenID Server found at <code>http://mail.google.com/a/oakland.edu/accounts/o8/id</code></p> </blockquote> <p>openid.php:</p> <pre><code>&lt;? &lt;?php require 'openid.php'; try { # Change 'localhost' to your domain name. $openid = new LightOpenID('http://webprolearner.ueuo.com'); if(!$openid-&gt;mode) { if(isset($_GET['login'])) { $openid-&gt;identity = 'mail.google.com/a/oakland.edu/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($openid-&gt;mode == 'cancel') { echo 'User has canceled authentication!'; } else { echo 'User ' . ($openid-&gt;validate() ? $openid-&gt;identity . ' has ' : 'has not ') . 'logged in.'; } } catch(ErrorException $e) { echo $e-&gt;getMessage(); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload