Skip to content

Commit 7f00d8b

Browse files
author
Michael Bleigh
committed
Merge branch 'master' of github.com:intridea/omniauth-openid
2 parents 54b20ff + c37d729 commit 7f00d8b

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ Provides strategies for authenticating to providers using the OpenID standard.
44

55
## Installation
66

7-
To get just OpenID functionality:
8-
9-
gem install oa-openid
10-
11-
For the full auth suite:
12-
13-
gem install omniauth
7+
gem install omniauth-openid
148

159
## Stand-Alone Example
1610

@@ -20,9 +14,9 @@ Use the strategy as a middleware in your application:
2014
require 'openid/store/filesystem'
2115

2216
use Rack::Session::Cookie
23-
use OmniAuth::Strategies::OpenID, OpenID::Store::Filesystem.new('/tmp')
17+
use OmniAuth::Strategies::OpenID, :store => OpenID::Store::Filesystem.new('/tmp')
2418

25-
Then simply direct users to '/auth/open_id' to prompt them for their OpenID identifier. You may also pre-set the identifier by passing an `identifier` parameter to the URL (Example: `/auth/open_id?openid_url=yahoo.com`).
19+
Then simply direct users to `/auth/open_id` to prompt them for their OpenID identifier. You may also pre-set the identifier by passing an `identifier` parameter to the URL (Example: `/auth/open_id?openid_url=yahoo.com`).
2620

2721
A list of all OpenID stores is available at http://github.com/openid/ruby-openid/tree/master/lib/openid/store/
2822

@@ -31,20 +25,18 @@ A list of all OpenID stores is available at http://github.com/openid/ruby-openid
3125
If OpenID is one of several authentication strategies, use the OmniAuth Builder:
3226

3327
require 'omniauth/openid'
34-
require 'omniauth/basic' # for Campfire
3528
require 'openid/store/filesystem'
3629

3730
use OmniAuth::Builder do
38-
provider :open_id, OpenID::Store::Filesystem.new('/tmp')
39-
provider :campfire
31+
provider :open_id, :store => OpenID::Store::Filesystem.new('/tmp')
4032
end
4133

4234
## Configured Identifiers
4335

4436
You may pre-configure an OpenID identifier. For example, to use Google's main OpenID endpoint:
4537

4638
use OmniAuth::Builder do
47-
provider :open_id, nil, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
39+
provider :open_id, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
4840
end
4941

5042
Note the use of nil, which will trigger ruby-openid's default Memory Store.

0 commit comments

Comments
 (0)