Skip to content

Commit 4ce4fbe

Browse files
committed
Allowed for protocol version specifying
1 parent c5c9364 commit 4ce4fbe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This is a modified version of [LightOpenId by mewp on Gitorious](https://gitorious.org/lightopenid). It allows client to force a specific OpenId endpoint URL. This is useful for organization applications wishing to authenticate with Google Apps Federated Login. You can specify the Google Apps Federated Login endpoint url directly with:
44

55
$openid = new LightOpenId('localhost'); // replace with your host
6+
$openid->version = 2;
67
$openid->server = 'https://www.google.com/a/YOURDOMAIN.com/o8/ud?be=o8';
78

89
For more usage examples, see `example.php` and `example-google.php`.

openid.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ class LightOpenID
5656
, $capath = null
5757
, $cainfo = null
5858
, $data
59-
, $server;
59+
, $server
60+
, $version;
6061
private $identity, $claimed_id;
61-
protected $version, $trustRoot, $aliases, $identifier_select = false
62+
protected $trustRoot, $aliases, $identifier_select = false
6263
, $ax = false, $sreg = false, $setup_url = null, $headers = array();
6364
static protected $ax_to_sreg = array(
6465
'namePerson/friendly' => 'nickname',

0 commit comments

Comments
 (0)