oa-openid 0.2.0.beta1 → 0.2.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010-2011 Michael Bleigh and Intridea, Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,51 @@
1
+ = OmniAuth::OpenID
2
+
3
+ Provides strategies for authenticating to providers using the OpenID standard.
4
+
5
+ == Installation
6
+
7
+ To get just OpenID functionality:
8
+
9
+ gem install oa-openid
10
+
11
+ For the full auth suite:
12
+
13
+ gem install omniauth
14
+
15
+ == Stand-Alone Example
16
+
17
+ Use the strategy as a middleware in your application:
18
+
19
+ require 'omniauth/openid'
20
+ require 'openid/store/filesystem'
21
+
22
+ use Rack::Session::Cookie
23
+ use OmniAuth::Strategies::OpenID, OpenID::Store::Filesystem.new('/tmp')
24
+
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 <tt>identifier</tt> parameter to the URL (Example: <tt>/auth/open_id?openid_url=yahoo.com</tt>).
26
+
27
+ A list of all OpenID stores is available at http://github.com/openid/ruby-openid/tree/master/lib/openid/store/
28
+
29
+ == OmniAuth Builder
30
+
31
+ If OpenID is one of several authentication strategies, use the OmniAuth Builder:
32
+
33
+ require 'omniauth/openid'
34
+ require 'omniauth/basic' # for Campfire
35
+ require 'openid/store/filesystem'
36
+
37
+ use OmniAuth::Builder do
38
+ provider :open_id, OpenID::Store::Filesystem.new('/tmp')
39
+ provider :campfire
40
+ end
41
+
42
+ == Configured Identifiers
43
+
44
+ You may pre-configure an OpenID identifier. For example, to use Google's main OpenID endpoint:
45
+
46
+ use OmniAuth::Builder do
47
+ provider :open_id, nil, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
48
+ end
49
+
50
+ Note the use of nil, which will trigger ruby-openid's default Memory Store.
51
+
@@ -55,12 +55,6 @@ module OmniAuth
55
55
  )}, []]}
56
56
  end
57
57
 
58
- def callback_url
59
- uri = URI.parse(request.url)
60
- uri.path += '/callback'
61
- uri.to_s
62
- end
63
-
64
58
  def identifier
65
59
  options[:identifier] || request[IDENTIFIER_URL_PARAMETER]
66
60
  end
@@ -88,7 +82,6 @@ module OmniAuth
88
82
  end
89
83
 
90
84
  def callback_phase
91
- env['REQUEST_METHOD'] = 'GET'
92
85
  openid = Rack::OpenID.new(lambda{|env| [200,{},[]]}, @store)
93
86
  openid.call(env)
94
87
  @openid_response = env.delete('rack.openid.response')
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa-openid
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1848230051
5
4
  prerelease: true
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
8
  - 0
10
- - beta1
11
- version: 0.2.0.beta1
9
+ - beta2
10
+ version: 0.2.0.beta2
12
11
  platform: ruby
13
12
  authors:
14
13
  - Michael Bleigh
@@ -16,150 +15,141 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-11-29 00:00:00 -06:00
18
+ date: 2011-01-14 00:00:00 -06:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ name: oa-core
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
26
  - - "="
27
27
  - !ruby/object:Gem::Version
28
- hash: -1848230051
29
28
  segments:
30
29
  - 0
31
30
  - 2
32
31
  - 0
33
- - beta1
34
- version: 0.2.0.beta1
35
- requirement: *id001
36
- name: oa-core
37
- prerelease: false
32
+ - beta2
33
+ version: 0.2.0.beta2
38
34
  type: :runtime
35
+ prerelease: false
36
+ version_requirements: *id001
39
37
  - !ruby/object:Gem::Dependency
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
+ name: rack-openid
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ~>
44
43
  - !ruby/object:Gem::Version
45
- hash: 31
46
44
  segments:
47
45
  - 1
48
46
  - 2
49
47
  - 0
50
48
  version: 1.2.0
51
- requirement: *id002
52
- name: rack-openid
53
- prerelease: false
54
49
  type: :runtime
50
+ prerelease: false
51
+ version_requirements: *id002
55
52
  - !ruby/object:Gem::Dependency
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ name: ruby-openid-apps-discovery
54
+ requirement: &id003 !ruby/object:Gem::Requirement
57
55
  none: false
58
56
  requirements:
59
57
  - - ">="
60
58
  - !ruby/object:Gem::Version
61
- hash: 3
62
59
  segments:
63
60
  - 0
64
61
  version: "0"
65
- requirement: *id003
66
- name: ruby-openid-apps-discovery
67
- prerelease: false
68
62
  type: :runtime
63
+ prerelease: false
64
+ version_requirements: *id003
69
65
  - !ruby/object:Gem::Dependency
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
66
+ name: rake
67
+ requirement: &id004 !ruby/object:Gem::Requirement
71
68
  none: false
72
69
  requirements:
73
70
  - - ">="
74
71
  - !ruby/object:Gem::Version
75
- hash: 3
76
72
  segments:
77
73
  - 0
78
74
  version: "0"
79
- requirement: *id004
80
- name: rake
81
- prerelease: false
82
75
  type: :development
76
+ prerelease: false
77
+ version_requirements: *id004
83
78
  - !ruby/object:Gem::Dependency
84
- version_requirements: &id005 !ruby/object:Gem::Requirement
79
+ name: mg
80
+ requirement: &id005 !ruby/object:Gem::Requirement
85
81
  none: false
86
82
  requirements:
87
83
  - - ~>
88
84
  - !ruby/object:Gem::Version
89
- hash: 15
90
85
  segments:
91
86
  - 0
92
87
  - 0
93
88
  - 8
94
89
  version: 0.0.8
95
- requirement: *id005
96
- name: mg
97
- prerelease: false
98
90
  type: :development
91
+ prerelease: false
92
+ version_requirements: *id005
99
93
  - !ruby/object:Gem::Dependency
100
- version_requirements: &id006 !ruby/object:Gem::Requirement
94
+ name: rspec
95
+ requirement: &id006 !ruby/object:Gem::Requirement
101
96
  none: false
102
97
  requirements:
103
98
  - - ~>
104
99
  - !ruby/object:Gem::Version
105
- hash: 27
106
100
  segments:
107
101
  - 1
108
102
  - 3
109
103
  - 0
110
104
  version: 1.3.0
111
- requirement: *id006
112
- name: rspec
113
- prerelease: false
114
105
  type: :development
106
+ prerelease: false
107
+ version_requirements: *id006
115
108
  - !ruby/object:Gem::Dependency
116
- version_requirements: &id007 !ruby/object:Gem::Requirement
109
+ name: webmock
110
+ requirement: &id007 !ruby/object:Gem::Requirement
117
111
  none: false
118
112
  requirements:
119
113
  - - ~>
120
114
  - !ruby/object:Gem::Version
121
- hash: 19
122
115
  segments:
123
116
  - 1
124
117
  - 3
125
118
  - 4
126
119
  version: 1.3.4
127
- requirement: *id007
128
- name: webmock
129
- prerelease: false
130
120
  type: :development
121
+ prerelease: false
122
+ version_requirements: *id007
131
123
  - !ruby/object:Gem::Dependency
132
- version_requirements: &id008 !ruby/object:Gem::Requirement
124
+ name: rack-test
125
+ requirement: &id008 !ruby/object:Gem::Requirement
133
126
  none: false
134
127
  requirements:
135
128
  - - ~>
136
129
  - !ruby/object:Gem::Version
137
- hash: 3
138
130
  segments:
139
131
  - 0
140
132
  - 5
141
133
  - 4
142
134
  version: 0.5.4
143
- requirement: *id008
144
- name: rack-test
145
- prerelease: false
146
135
  type: :development
136
+ prerelease: false
137
+ version_requirements: *id008
147
138
  - !ruby/object:Gem::Dependency
148
- version_requirements: &id009 !ruby/object:Gem::Requirement
139
+ name: json
140
+ requirement: &id009 !ruby/object:Gem::Requirement
149
141
  none: false
150
142
  requirements:
151
143
  - - ~>
152
144
  - !ruby/object:Gem::Version
153
- hash: 1
154
145
  segments:
155
146
  - 1
156
147
  - 4
157
148
  - 3
158
149
  version: 1.4.3
159
- requirement: *id009
160
- name: json
161
- prerelease: false
162
150
  type: :development
151
+ prerelease: false
152
+ version_requirements: *id009
163
153
  description: OpenID strategies for OmniAuth.
164
154
  email: michael@intridea.com
165
155
  executables: []
@@ -173,8 +163,8 @@ files:
173
163
  - lib/omniauth/openid.rb
174
164
  - lib/omniauth/strategies/google_apps.rb
175
165
  - lib/omniauth/strategies/open_id.rb
176
- - LICENSE.rdoc
177
- - CHANGELOG.rdoc
166
+ - README.rdoc
167
+ - LICENSE
178
168
  has_rdoc: true
179
169
  homepage: http://github.com/intridea/omniauth
180
170
  licenses: []
@@ -189,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
179
  requirements:
190
180
  - - ">="
191
181
  - !ruby/object:Gem::Version
192
- hash: 3
182
+ hash: 1410705028913471250
193
183
  segments:
194
184
  - 0
195
185
  version: "0"
@@ -198,7 +188,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
188
  requirements:
199
189
  - - ">"
200
190
  - !ruby/object:Gem::Version
201
- hash: 25
202
191
  segments:
203
192
  - 1
204
193
  - 3
data/CHANGELOG.rdoc DELETED
@@ -1,3 +0,0 @@
1
- == 0.0.3
2
-
3
- * Display a form if no identifier is provided at /auth/open_id
data/LICENSE.rdoc DELETED
File without changes