authlogic-connect 0.0.3.3 → 0.0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +0 -0
- data/README.markdown +58 -28
- data/Rakefile +6 -4
- data/init.rb +0 -0
- data/lib/authlogic-connect.rb +34 -5
- data/lib/authlogic_connect/callback_filter.rb +0 -0
- data/lib/authlogic_connect/common.rb +0 -0
- data/lib/authlogic_connect/common/ext.rb +0 -0
- data/lib/authlogic_connect/common/session.rb +0 -0
- data/lib/authlogic_connect/common/user.rb +0 -0
- data/lib/authlogic_connect/common/variables.rb +0 -0
- data/lib/authlogic_connect/engine.rb +15 -0
- data/lib/authlogic_connect/oauth.rb +0 -0
- data/lib/authlogic_connect/oauth/helper.rb +0 -0
- data/lib/authlogic_connect/oauth/process.rb +0 -0
- data/lib/authlogic_connect/oauth/session.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/facebook_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/get_satisfaction_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/google_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/linked_in_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/myspace_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/oauth_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/opensocial_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/twitter_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/vimeo_token.rb +0 -0
- data/lib/authlogic_connect/oauth/tokens/yahoo_token.rb +0 -0
- data/lib/authlogic_connect/oauth/user.rb +3 -1
- data/lib/authlogic_connect/oauth/variables.rb +0 -0
- data/lib/authlogic_connect/openid.rb +0 -0
- data/lib/authlogic_connect/openid/session.rb +0 -0
- data/lib/authlogic_connect/openid/tokens/aol_token.rb +0 -0
- data/lib/authlogic_connect/openid/tokens/blogger_token.rb +0 -0
- data/lib/authlogic_connect/openid/tokens/flickr_token.rb +0 -0
- data/lib/authlogic_connect/openid/tokens/my_openid_token.rb +0 -0
- data/lib/authlogic_connect/openid/tokens/openid_token.rb +0 -0
- data/lib/authlogic_connect/openid/user.rb +0 -0
- data/lib/authlogic_connect/openid/variables.rb +0 -0
- data/lib/authlogic_connect/token.rb +0 -0
- data/lib/open_id_authentication.rb +129 -0
- data/rails/init.rb +19 -1
- data/test/database.yml +0 -0
- data/test/test_authlogic_connect.rb +0 -0
- data/test/test_helper.rb +0 -0
- metadata +36 -8
data/MIT-LICENSE
CHANGED
File without changes
|
data/README.markdown
CHANGED
@@ -15,14 +15,11 @@ All of that is easier than creating a new account and password.
|
|
15
15
|
* <b>Authlogic:</b> [http://github.com/binarylogic/authlogic](http://github.com/binarylogic/authlogic)
|
16
16
|
* <b>Authlogic Connect Example Project:</b> [http://github.com/viatropos/authlogic-connect-example](http://github.com/viatropos/authlogic-connect-example)
|
17
17
|
* <b>Live example with Twitter and Facebook using Rails 3:</b> [http://authlogic-connect.heroku.com](http://authlogic-connect.heroku.com)
|
18
|
+
* <b>Rails 2.3.5 Example:</b> [http://github.com/viatropos/authlogic-connect-example-rails2](http://github.com/viatropos/authlogic-connect-example-rails2)
|
19
|
+
* **Rubygems Repository:** [http://rubygems.org/gems/authlogic-connect](http://rubygems.org/gems/authlogic-connect)
|
18
20
|
|
19
21
|
## Supported Providers
|
20
22
|
|
21
|
-
Lists of all known providers here:
|
22
|
-
|
23
|
-
- [Oauth Providers](http://wiki.oauth.net/ServiceProviders)
|
24
|
-
- [OpenID Providers](http://en.wikipedia.org/wiki/List_of_OpenID_providers)
|
25
|
-
|
26
23
|
### Oauth
|
27
24
|
|
28
25
|
- Twitter
|
@@ -33,42 +30,47 @@ Lists of all known providers here:
|
|
33
30
|
|
34
31
|
- MyOpenID
|
35
32
|
|
36
|
-
|
33
|
+
Lists of all known providers here:
|
37
34
|
|
38
|
-
|
35
|
+
- [Oauth Providers](http://wiki.oauth.net/ServiceProviders)
|
36
|
+
- [OpenID Providers](http://en.wikipedia.org/wiki/List_of_OpenID_providers)
|
39
37
|
|
40
|
-
|
38
|
+
## Install and use
|
41
39
|
|
42
|
-
###
|
40
|
+
### 1. Install Authlogic Connect
|
43
41
|
|
44
|
-
sudo gem install oauth
|
45
42
|
sudo gem install authlogic-connect
|
46
43
|
|
47
|
-
|
44
|
+
### 2. Add the gem dependencies in your config:
|
45
|
+
|
46
|
+
Rails 2.3.x: `config/environment.rb`
|
48
47
|
|
49
48
|
config.gem "json"
|
50
49
|
config.gem "authlogic"
|
51
50
|
config.gem "oauth"
|
52
51
|
config.gem "oauth2"
|
53
|
-
config.gem "authlogic-connect"
|
52
|
+
config.gem "authlogic-connect"
|
54
53
|
|
55
|
-
|
54
|
+
Rails 3: `Gemfile`
|
56
55
|
|
57
|
-
|
56
|
+
gem "ruby-openid"
|
57
|
+
gem "rack-openid", ">=0.2.1", :require => "rack/openid"
|
58
|
+
gem "authlogic", :git => "git://github.com/odorcicd/authlogic.git", :branch => "rails3"
|
59
|
+
gem "oauth"
|
60
|
+
gem "oauth2"
|
61
|
+
gem "authlogic-connect"
|
58
62
|
|
59
|
-
|
63
|
+
### 3. Add the Migrations
|
60
64
|
|
61
|
-
|
65
|
+
See the [Rails 2 Example](http://github.com/viatropos/authlogic-connect-example-rails2) and [Rails 3 Example](http://github.com/viatropos/authlogic-connect-example) projects to see what you need. Will add a generator sometime.
|
62
66
|
|
63
|
-
|
64
|
-
def self.up
|
65
|
-
# TODO
|
66
|
-
end
|
67
|
+
Files needed are:
|
67
68
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
- models: User, UserSession
|
70
|
+
- controllers: UsersController, UserSessionsController, ApplicationController
|
71
|
+
- migrations: create\_users, create\_sessions, create\_tokens
|
72
|
+
- initializers: config/authlogic.example.yml, config/initializers/authlogic_connect_config.rb
|
73
|
+
- routes
|
72
74
|
|
73
75
|
### 4. Configure your keys
|
74
76
|
|
@@ -124,15 +126,27 @@ If we don't use the block, we will get a DoubleRender error. This lets us skip t
|
|
124
126
|
Here's an example of the FacebookToken for Oauth
|
125
127
|
|
126
128
|
class FacebookToken < OauthToken
|
127
|
-
|
129
|
+
|
130
|
+
version 2.0 # oauth 2.0
|
131
|
+
|
132
|
+
settings "https://graph.facebook.com",
|
133
|
+
:authorize_url => "https://graph.facebook.com/oauth/authorize",
|
134
|
+
:scope => "email, offline_access"
|
135
|
+
|
128
136
|
end
|
137
|
+
|
138
|
+
If there is an Oauth/OpenID service you need, let me know, or fork/add/push and I will integrate it into the project and add you to the list.
|
139
|
+
|
140
|
+
Currently Implemented (some fully, some partially):
|
141
|
+
|
142
|
+
- [Oauth Tokens](http://github.com/viatropos/authlogic-connect/tree/master/lib/authlogic_connect/oauth/tokens/)
|
129
143
|
|
130
|
-
###
|
144
|
+
### 7. Add login and register buttons to your views
|
131
145
|
|
132
146
|
<%# oauth_register_button :value => "Register with Twitter" %>
|
133
147
|
<%# oauth_login_button :value => "Login with Twitter" %>
|
134
148
|
|
135
|
-
|
149
|
+
Check out the example projects to see exactly what's required. These aren't totally useful yet. Their job is to just send the right parameters to authlogic-connect.
|
136
150
|
|
137
151
|
## The Flow
|
138
152
|
|
@@ -160,6 +174,14 @@ That's it! The rest is taken care of for you.
|
|
160
174
|
- Save user
|
161
175
|
- Finish block, render page
|
162
176
|
|
177
|
+
### Note about the redirect process
|
178
|
+
|
179
|
+
When you make a request to one of these services, it responds with a GET request. But assuming we have made the request through a `create` method (`UsersController#create` for `/register`, `UserSessionsController#create` for `/login`), we want that GET to be a POST.
|
180
|
+
|
181
|
+
This is accomplished by adding a property called `auth_callback_method` to the session when the original request is made. It says "POST", or whatever the translation is from the controller method that was called.
|
182
|
+
|
183
|
+
Then a Rack Middleware filter converts the GET return request from the authentication service into POST. This forces it to run back through the `create` method. Check out [`AuthlogicConnect::CallbackFilter`](http://github.com/viatropos/authlogic-connect/blob/master/lib/authlogic_connect/callback_filter.rb) for details. Or search "Rack Middleware".
|
184
|
+
|
163
185
|
## Project Goals
|
164
186
|
|
165
187
|
1. It should require the end user ONE CLICK to create an account with your site.
|
@@ -186,4 +208,12 @@ I have no idea how to get up and running with Autotest and Shoulda right now. I
|
|
186
208
|
## TODO
|
187
209
|
|
188
210
|
- Change `register_with_oauth` and related to `register_method` and `login_method`: oauth, openid, traditional
|
189
|
-
- Build view helpers
|
211
|
+
- Build view helpers
|
212
|
+
|
213
|
+
## Helpful References for Rails 3
|
214
|
+
|
215
|
+
- [Rails 3 Initialization Process](http://ryanbigg.com/guides/initialization.html)
|
216
|
+
- [Rails 3 Plugins - Part 1, Big Picture](http://www.themodestrubyist.com/2010/03/01/rails-3-plugins---part-1---the-big-picture/)
|
217
|
+
- [Rails 3 Plugins - Part 2, Writing an Engine](http://www.themodestrubyist.com/2010/03/05/rails-3-plugins---part-2---writing-an-engine/)
|
218
|
+
- [Rails 3 Plugins - Part 3, Initializers](http://www.themodestrubyist.com/2010/03/16/rails-3-plugins---part-3---rake-tasks-generators-initializers-oh-my/)
|
219
|
+
- [Using Gemspecs as Intended](http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/)
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
|
|
6
6
|
spec = Gem::Specification.new do |s|
|
7
7
|
s.name = "authlogic-connect"
|
8
8
|
s.author = "Lance Pollard"
|
9
|
-
s.version = "0.0.3.
|
9
|
+
s.version = "0.0.3.4"
|
10
10
|
s.summary = "Authlogic Connect: Let your app use all of Oauth and OpenID"
|
11
11
|
s.homepage = "http://github.com/viatropos/authlogic-connect"
|
12
12
|
s.email = "lancejpollard@gmail.com"
|
@@ -18,10 +18,12 @@ spec = Gem::Specification.new do |s|
|
|
18
18
|
s.require_path = "lib"
|
19
19
|
s.add_dependency("activesupport", ">= 2.1.2")
|
20
20
|
s.add_dependency("activerecord", ">= 2.1.2")
|
21
|
-
s.add_dependency("authlogic")
|
22
|
-
s.add_dependency("oauth")
|
23
21
|
s.add_dependency("json")
|
24
|
-
s.add_dependency("
|
22
|
+
s.add_dependency("ruby-openid")
|
23
|
+
s.add_dependency("rack-openid", ">=0.2.1")
|
24
|
+
s.add_dependency("oauth")
|
25
|
+
s.add_dependency("oauth2")
|
26
|
+
s.add_dependency("authlogic")
|
25
27
|
end
|
26
28
|
|
27
29
|
desc "Create .gemspec file (useful for github)"
|
data/init.rb
CHANGED
File without changes
|
data/lib/authlogic-connect.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'active_record'
|
2
|
+
require "rubygems"
|
2
3
|
require 'authlogic'
|
3
4
|
require 'oauth'
|
4
5
|
require 'oauth2'
|
@@ -6,18 +7,44 @@ require 'oauth2'
|
|
6
7
|
this = File.dirname(__FILE__)
|
7
8
|
library = "#{this}/authlogic_connect"
|
8
9
|
|
10
|
+
class Hash
|
11
|
+
def recursively_symbolize_keys!
|
12
|
+
self.symbolize_keys!
|
13
|
+
self.values.each do |v|
|
14
|
+
if v.is_a? Hash
|
15
|
+
v.recursively_symbolize_keys!
|
16
|
+
elsif v.is_a? Array
|
17
|
+
v.recursively_symbolize_keys!
|
18
|
+
end
|
19
|
+
end
|
20
|
+
self
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
class Array
|
25
|
+
def recursively_symbolize_keys!
|
26
|
+
self.each do |item|
|
27
|
+
if item.is_a? Hash
|
28
|
+
item.recursively_symbolize_keys!
|
29
|
+
elsif item.is_a? Array
|
30
|
+
item.recursively_symbolize_keys!
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
9
36
|
module AuthlogicConnect
|
10
37
|
KEY = "connect"
|
11
38
|
|
12
39
|
class << self
|
13
40
|
|
14
41
|
attr_accessor :config
|
15
|
-
|
42
|
+
|
16
43
|
def config=(value)
|
17
44
|
value.recursively_symbolize_keys!
|
18
45
|
@config = value
|
19
46
|
end
|
20
|
-
|
47
|
+
|
21
48
|
def key(path)
|
22
49
|
result = self.config
|
23
50
|
path.to_s.split(".").each { |node| result = result[node.to_sym] if result }
|
@@ -51,15 +78,17 @@ module AuthlogicConnect
|
|
51
78
|
end
|
52
79
|
end
|
53
80
|
|
81
|
+
require "#{this}/open_id_authentication"
|
54
82
|
require "#{library}/callback_filter"
|
55
83
|
require "#{library}/token"
|
56
84
|
require "#{library}/openid"
|
57
85
|
require "#{library}/oauth"
|
58
86
|
require "#{library}/common"
|
87
|
+
require "#{library}/engine" if defined?(Rails) && Rails::VERSION::MAJOR == 3
|
59
88
|
|
60
|
-
custom_models =
|
61
|
-
custom_models +=
|
62
|
-
custom_models +=Dir["#{library}/openid/tokens"]
|
89
|
+
custom_models = ["#{library}/token"]
|
90
|
+
custom_models += Dir["#{library}/oauth/tokens"]
|
91
|
+
custom_models += Dir["#{library}/openid/tokens"]
|
63
92
|
|
64
93
|
custom_models.each do |path|
|
65
94
|
$LOAD_PATH << path
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module AuthlogicConnect
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
engine_name :authlogic_connect
|
4
|
+
|
5
|
+
initializer "authlogic_connect.authentication_hook" do |app|
|
6
|
+
app.middleware.use AuthlogicConnect::CallbackFilter
|
7
|
+
app.middleware.use OpenIdAuthentication
|
8
|
+
end
|
9
|
+
|
10
|
+
initializer "authlogic_connect.finalize", :after => "authlogic_connect.authentication_hook" do |app|
|
11
|
+
OpenID::Util.logger = Rails.logger
|
12
|
+
ActionController::Base.send :include, OpenIdAuthentication
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -70,7 +70,9 @@ module AuthlogicConnect::Oauth
|
|
70
70
|
# Restore any attributes which were saved before redirecting to the oauth server
|
71
71
|
self.attributes = auth_session.delete(:authlogic_oauth_attributes)
|
72
72
|
token = AuthlogicConnect.token(oauth_provider).new(oauth_key_and_secret)
|
73
|
-
|
73
|
+
puts "NEW TOKEN: #{token.inspect}"
|
74
|
+
if old_token = Token.find_by_key(token.key)
|
75
|
+
puts "OLD TOKEN? #{old_token.inspect}"
|
74
76
|
self.errors.add("you have already created an account using your #{oauth_token.service_name} account, so it")
|
75
77
|
else
|
76
78
|
self.tokens << token
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,129 @@
|
|
1
|
+
# copied from open_id_authentication plugin on github
|
2
|
+
require 'uri'
|
3
|
+
require 'openid'
|
4
|
+
require 'rack/openid'
|
5
|
+
|
6
|
+
module OpenIdAuthentication
|
7
|
+
def self.new(app)
|
8
|
+
store = OpenIdAuthentication.store
|
9
|
+
if store.nil?
|
10
|
+
Rails.logger.warn "OpenIdAuthentication.store is nil. Using in-memory store."
|
11
|
+
end
|
12
|
+
|
13
|
+
::Rack::OpenID.new(app, OpenIdAuthentication.store)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.store
|
17
|
+
@@store
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.store=(*store_option)
|
21
|
+
store, *parameters = *([ store_option ].flatten)
|
22
|
+
|
23
|
+
@@store = case store
|
24
|
+
when :memory
|
25
|
+
require 'openid/store/memory'
|
26
|
+
OpenID::Store::Memory.new
|
27
|
+
when :file
|
28
|
+
require 'openid/store/filesystem'
|
29
|
+
OpenID::Store::Filesystem.new(Rails.root.join('tmp/openids'))
|
30
|
+
when :memcache
|
31
|
+
require 'memcache'
|
32
|
+
require 'openid/store/memcache'
|
33
|
+
OpenID::Store::Memcache.new(MemCache.new(parameters))
|
34
|
+
else
|
35
|
+
store
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
self.store = nil
|
40
|
+
|
41
|
+
class Result
|
42
|
+
ERROR_MESSAGES = {
|
43
|
+
:missing => "Sorry, the OpenID server couldn't be found",
|
44
|
+
:invalid => "Sorry, but this does not appear to be a valid OpenID",
|
45
|
+
:canceled => "OpenID verification was canceled",
|
46
|
+
:failed => "OpenID verification failed",
|
47
|
+
:setup_needed => "OpenID verification needs setup"
|
48
|
+
}
|
49
|
+
|
50
|
+
def self.[](code)
|
51
|
+
new(code)
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(code)
|
55
|
+
@code = code
|
56
|
+
end
|
57
|
+
|
58
|
+
def status
|
59
|
+
@code
|
60
|
+
end
|
61
|
+
|
62
|
+
ERROR_MESSAGES.keys.each { |state| define_method("#{state}?") { @code == state } }
|
63
|
+
|
64
|
+
def successful?
|
65
|
+
@code == :successful
|
66
|
+
end
|
67
|
+
|
68
|
+
def unsuccessful?
|
69
|
+
ERROR_MESSAGES.keys.include?(@code)
|
70
|
+
end
|
71
|
+
|
72
|
+
def message
|
73
|
+
ERROR_MESSAGES[@code]
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
protected
|
78
|
+
# The parameter name of "openid_identifier" is used rather than
|
79
|
+
# the Rails convention "open_id_identifier" because that's what
|
80
|
+
# the specification dictates in order to get browser auto-complete
|
81
|
+
# working across sites
|
82
|
+
def using_open_id?(identifier = nil) #:doc:
|
83
|
+
identifier ||= open_id_identifier
|
84
|
+
!identifier.blank? || request.env[Rack::OpenID::RESPONSE]
|
85
|
+
end
|
86
|
+
|
87
|
+
def authenticate_with_open_id(identifier = nil, options = {}, &block) #:doc:
|
88
|
+
identifier ||= open_id_identifier
|
89
|
+
|
90
|
+
if request.env[Rack::OpenID::RESPONSE]
|
91
|
+
complete_open_id_authentication(&block)
|
92
|
+
else
|
93
|
+
begin_open_id_authentication(identifier, options, &block)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
private
|
98
|
+
def open_id_identifier
|
99
|
+
params[:openid_identifier] || params[:openid_url]
|
100
|
+
end
|
101
|
+
|
102
|
+
def begin_open_id_authentication(identifier, options = {})
|
103
|
+
options[:identifier] = identifier
|
104
|
+
value = Rack::OpenID.build_header(options)
|
105
|
+
response.headers[Rack::OpenID::AUTHENTICATE_HEADER] = value
|
106
|
+
head :unauthorized
|
107
|
+
end
|
108
|
+
|
109
|
+
def complete_open_id_authentication
|
110
|
+
response = request.env[Rack::OpenID::RESPONSE]
|
111
|
+
identifier = response.display_identifier
|
112
|
+
|
113
|
+
case response.status
|
114
|
+
when OpenID::Consumer::SUCCESS
|
115
|
+
yield Result[:successful], identifier,
|
116
|
+
OpenID::SReg::Response.from_success_response(response)
|
117
|
+
when :missing
|
118
|
+
yield Result[:missing], identifier, nil
|
119
|
+
when :invalid
|
120
|
+
yield Result[:invalid], identifier, nil
|
121
|
+
when OpenID::Consumer::CANCEL
|
122
|
+
yield Result[:canceled], identifier, nil
|
123
|
+
when OpenID::Consumer::FAILURE
|
124
|
+
yield Result[:failed], identifier, nil
|
125
|
+
when OpenID::Consumer::SETUP_NEEDED
|
126
|
+
yield Result[:setup_needed], response.setup_url, nil
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
data/rails/init.rb
CHANGED
@@ -1 +1,19 @@
|
|
1
|
-
require "authlogic-connect"
|
1
|
+
require "authlogic-connect"
|
2
|
+
|
3
|
+
# copied from open_id_authentication plugin on github
|
4
|
+
|
5
|
+
# this is the Rails 2.x equivalent.
|
6
|
+
# Rails 3 equivalent is in authlogic_connect/engine.rb
|
7
|
+
if Rails.version < '3'
|
8
|
+
config.gem 'rack-openid', :lib => 'rack/openid', :version => '>=0.2.1'
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'open_id_authentication'
|
12
|
+
|
13
|
+
config.middleware.use AuthlogicConnect::CallbackFilter
|
14
|
+
config.middleware.use OpenIdAuthentication
|
15
|
+
|
16
|
+
config.after_initialize do
|
17
|
+
OpenID::Util.logger = Rails.logger
|
18
|
+
ActionController::Base.send :include, OpenIdAuthentication
|
19
|
+
end
|
data/test/database.yml
CHANGED
File without changes
|
File without changes
|
data/test/test_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lance Pollard
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-18 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: json
|
51
51
|
prerelease: false
|
52
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
type: :runtime
|
60
60
|
version_requirements: *id003
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: ruby-openid
|
63
63
|
prerelease: false
|
64
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
type: :runtime
|
72
72
|
version_requirements: *id004
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
|
-
name:
|
74
|
+
name: rack-openid
|
75
75
|
prerelease: false
|
76
76
|
requirement: &id005 !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
@@ -79,11 +79,13 @@ dependencies:
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
segments:
|
81
81
|
- 0
|
82
|
-
|
82
|
+
- 2
|
83
|
+
- 1
|
84
|
+
version: 0.2.1
|
83
85
|
type: :runtime
|
84
86
|
version_requirements: *id005
|
85
87
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
88
|
+
name: oauth
|
87
89
|
prerelease: false
|
88
90
|
requirement: &id006 !ruby/object:Gem::Requirement
|
89
91
|
requirements:
|
@@ -94,6 +96,30 @@ dependencies:
|
|
94
96
|
version: "0"
|
95
97
|
type: :runtime
|
96
98
|
version_requirements: *id006
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: oauth2
|
101
|
+
prerelease: false
|
102
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
109
|
+
type: :runtime
|
110
|
+
version_requirements: *id007
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: authlogic
|
113
|
+
prerelease: false
|
114
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
segments:
|
119
|
+
- 0
|
120
|
+
version: "0"
|
121
|
+
type: :runtime
|
122
|
+
version_requirements: *id008
|
97
123
|
description: Let your app use all of Oauth and OpenID
|
98
124
|
email: lancejpollard@gmail.com
|
99
125
|
executables: []
|
@@ -114,6 +140,7 @@ files:
|
|
114
140
|
- lib/authlogic_connect/common/user.rb
|
115
141
|
- lib/authlogic_connect/common/variables.rb
|
116
142
|
- lib/authlogic_connect/common.rb
|
143
|
+
- lib/authlogic_connect/engine.rb
|
117
144
|
- lib/authlogic_connect/oauth/helper.rb
|
118
145
|
- lib/authlogic_connect/oauth/process.rb
|
119
146
|
- lib/authlogic_connect/oauth/session.rb
|
@@ -140,6 +167,7 @@ files:
|
|
140
167
|
- lib/authlogic_connect/openid/variables.rb
|
141
168
|
- lib/authlogic_connect/openid.rb
|
142
169
|
- lib/authlogic_connect/token.rb
|
170
|
+
- lib/open_id_authentication.rb
|
143
171
|
- rails/init.rb
|
144
172
|
- test/database.yml
|
145
173
|
- test/test_authlogic_connect.rb
|