omniauth-openid 1.0.0.rc2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/README.md +5 -13
- data/lib/omniauth-openid/version.rb +1 -1
- data/omniauth-openid.gemspec +2 -2
- metadata +25 -25
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,13 +4,7 @@ Provides strategies for authenticating to providers using the OpenID standard.
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
gem install oa-openid
|
10
|
-
|
11
|
-
For the full auth suite:
|
12
|
-
|
13
|
-
gem install omniauth
|
7
|
+
gem install omniauth-openid
|
14
8
|
|
15
9
|
## Stand-Alone Example
|
16
10
|
|
@@ -20,9 +14,9 @@ Use the strategy as a middleware in your application:
|
|
20
14
|
require 'openid/store/filesystem'
|
21
15
|
|
22
16
|
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')
|
24
18
|
|
25
|
-
Then simply direct users to
|
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`).
|
26
20
|
|
27
21
|
A list of all OpenID stores is available at http://github.com/openid/ruby-openid/tree/master/lib/openid/store/
|
28
22
|
|
@@ -31,12 +25,10 @@ A list of all OpenID stores is available at http://github.com/openid/ruby-openid
|
|
31
25
|
If OpenID is one of several authentication strategies, use the OmniAuth Builder:
|
32
26
|
|
33
27
|
require 'omniauth/openid'
|
34
|
-
require 'omniauth/basic' # for Campfire
|
35
28
|
require 'openid/store/filesystem'
|
36
29
|
|
37
30
|
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')
|
40
32
|
end
|
41
33
|
|
42
34
|
## Configured Identifiers
|
@@ -44,7 +36,7 @@ If OpenID is one of several authentication strategies, use the OmniAuth Builder:
|
|
44
36
|
You may pre-configure an OpenID identifier. For example, to use Google's main OpenID endpoint:
|
45
37
|
|
46
38
|
use OmniAuth::Builder do
|
47
|
-
provider :open_id,
|
39
|
+
provider :open_id, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
|
48
40
|
end
|
49
41
|
|
50
42
|
Note the use of nil, which will trigger ruby-openid's default Memory Store.
|
data/omniauth-openid.gemspec
CHANGED
@@ -3,12 +3,12 @@ require File.expand_path('../lib/omniauth-openid/version', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
|
6
|
-
gem.add_dependency 'omniauth', '~> 1.0
|
6
|
+
gem.add_dependency 'omniauth', '~> 1.0'
|
7
7
|
gem.add_dependency 'rack-openid', '~> 1.3.1'
|
8
8
|
gem.add_development_dependency 'rack-test', '~> 0.5'
|
9
9
|
gem.add_development_dependency 'rake', '~> 0.8'
|
10
10
|
gem.add_development_dependency 'rdiscount', '~> 1.6'
|
11
|
-
gem.add_development_dependency 'rspec', '~> 2.
|
11
|
+
gem.add_development_dependency 'rspec', '~> 2.7'
|
12
12
|
gem.add_development_dependency 'simplecov', '~> 0.4'
|
13
13
|
gem.add_development_dependency 'webmock', '~> 1.7'
|
14
14
|
gem.add_development_dependency 'yard', '~> 0.7'
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-openid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael Bleigh
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-11-02 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth
|
17
|
-
requirement: &
|
17
|
+
requirement: &70352060651980 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.0
|
22
|
+
version: '1.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70352060651980
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rack-openid
|
28
|
-
requirement: &
|
28
|
+
requirement: &70352060650760 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.3.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70352060650760
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rack-test
|
39
|
-
requirement: &
|
39
|
+
requirement: &70352060649280 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0.5'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70352060649280
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake
|
50
|
-
requirement: &
|
50
|
+
requirement: &70352060646420 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0.8'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70352060646420
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rdiscount
|
61
|
-
requirement: &
|
61
|
+
requirement: &70352060644280 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,21 +66,21 @@ dependencies:
|
|
66
66
|
version: '1.6'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70352060644280
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec
|
72
|
-
requirement: &
|
72
|
+
requirement: &70352060641340 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '2.
|
77
|
+
version: '2.7'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *70352060641340
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: simplecov
|
83
|
-
requirement: &
|
83
|
+
requirement: &70352060640020 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ~>
|
@@ -88,10 +88,10 @@ dependencies:
|
|
88
88
|
version: '0.4'
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *70352060640020
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: webmock
|
94
|
-
requirement: &
|
94
|
+
requirement: &70352060637800 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ~>
|
@@ -99,10 +99,10 @@ dependencies:
|
|
99
99
|
version: '1.7'
|
100
100
|
type: :development
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *70352060637800
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: yard
|
105
|
-
requirement: &
|
105
|
+
requirement: &70352060627560 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
@@ -110,7 +110,7 @@ dependencies:
|
|
110
110
|
version: '0.7'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *70352060627560
|
114
114
|
description: OpenID strategy for OmniAuth.
|
115
115
|
email:
|
116
116
|
- michael@intridea.com
|
@@ -155,9 +155,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|
158
|
-
- - ! '
|
158
|
+
- - ! '>='
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: 1.3.
|
160
|
+
version: 1.3.6
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
163
|
rubygems_version: 1.8.10
|