My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Configuration  
Basic configuration options of LightOpenID
Updated Feb 14, 2011 by mewp...@gmail.com

LightOpenID is configured by setting certain variables on an object, for example:

$openid = new LightOpenID;
$openid->identity = 'openid.example.com'

The following options are avaiable:

name description
identity Sets (or gets) the identity supplied by an user. Set it before calling authUrl(), and get after validate().
returnUrl Users will be redirected to this url after they complete authentication with their provider. Default: current url.
realm The realm user is signing into. Providers usually say "You are sgning into $realm". Must be in the same domain as returnUrl. Usually, this should be the host part of your site's url. And that's the default.
required and optional Attempts to fetch more information about an user. See GettingMoreInformation.
verify_peer When using https, attempts to verify peer's certificate. See CURLOPT_SSL_VERIFYPEER.
cainfo and capath when verify_peer is true, sets the CA info file and directory, respecively. See CURLOPT_SSL_CAINFO and CURLOPT_SSL_CAPATH.

Comment by themoose...@googlemail.com, Apr 7, 2011

It makes a difference if you choose 'http://www.martin-thoma.de' or 'http://martin-thoma.de' as realm. Which value should realm have, if I want to accept both?

Comment by benmcmu...@gmail.com, May 24, 2011

Yeah, I have multiple domains, and would like to be able to get one identity for all of them.

Comment by themoose...@googlemail.com, May 26, 2011

As I don't know how to accpet both, I chose www.martin-thoma.de. To make sure that the user accesses the Website with the right URL, I added this line to my code on the page where the user logs in:

if($_SERVER['SERVER_NAME'] == 'martin-thoma.de'){header("Location: http://www.martin-thoma.de/terminplaner/Anmelden.php"); }

You could also make that with .htaccess.

Comment by sp2ong, May 27, 2011

Hi,

I hav try create provider use this code. I have create tables in my sql db like in comment in example-mysql.php but when I call exmaple-mysql.php I don't see any result. Anybody help how to run own OpenID provider base on LightOpenID ?

Comment by dchalle...@gmail.com, Jul 21, 2011

My server (and clients) is on a private network and needs to connect via a proxy (squid) to get out to the providers. How can I do this? Ta.

Comment by pemina...@gmail.com, Sep 21, 2011

some simple code (php) would help to how to keep the login between pages, how to get the login status after I click on some other subpage ? use own session after first login?

Comment by themoose...@googlemail.com, Oct 7, 2011

I think this has to be updated to

$openid = new LightOpenID('myhost');
Powered by Google Project Hosting