devise_openid_authenticatable 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.rdoc +9 -0
- data/Gemfile +3 -16
- data/Gemfile.devise13 +10 -0
- data/Gemfile.devise14 +10 -0
- data/Gemfile.devise15 +10 -0
- data/LICENSE +22 -0
- data/README.md +11 -19
- data/Rakefile +3 -18
- data/devise_openid_authenticatable.gemspec +23 -95
- data/devise_openid_authenticatable.gemspec.bak +100 -0
- data/lib/devise_openid_authenticatable.rb +1 -2
- data/lib/devise_openid_authenticatable/model.rb +5 -0
- data/lib/devise_openid_authenticatable/strategy.rb +3 -10
- data/lib/devise_openid_authenticatable/version.rb +3 -0
- data/spec/strategy_spec.rb +1 -1
- metadata +126 -25
- data/lib/devise_openid_authenticatable/routes.rb +0 -16
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 1.1.0
|
2
|
+
* Drop support for Rails 2
|
3
|
+
* Fix routing issues on Devise > 1.3.5 (fixes #11)
|
4
|
+
* Convert to Bundler-style gem
|
5
|
+
* Test using Travis
|
6
|
+
|
7
|
+
== 1.0.0
|
8
|
+
* No changes
|
9
|
+
|
1
10
|
== 1.0.0.beta2
|
2
11
|
* Fix a typo that was breaking all apps using create_from_identity_url.
|
3
12
|
|
data/Gemfile
CHANGED
@@ -1,21 +1,8 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem
|
4
|
-
|
3
|
+
# Specify your gem's dependencies in devise_openid_authenticatable.gemspec
|
4
|
+
gemspec
|
5
5
|
|
6
6
|
group :test do
|
7
|
-
gem 'rails', '3.0.0'
|
8
|
-
gem "rspec", "~> 2.3"
|
9
|
-
gem "rspec-rails", "~> 2.3"
|
10
|
-
gem "mocha"
|
11
|
-
gem "sqlite3-ruby"
|
12
7
|
gem "rots", :git => "http://github.com/roman/rots.git"
|
13
|
-
gem "sham_rack"
|
14
|
-
gem "webrat"
|
15
|
-
|
16
|
-
if RUBY_VERSION.start_with? '1.9'
|
17
|
-
gem "ruby-debug19"
|
18
|
-
else
|
19
|
-
gem "ruby-debug"
|
20
|
-
end
|
21
8
|
end
|
data/Gemfile.devise13
ADDED
data/Gemfile.devise14
ADDED
data/Gemfile.devise15
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2011 Nat Budin
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
devise_openid_authenticatable
|
1
|
+
devise_openid_authenticatable [![Build Status](https://secure.travis-ci.org/[nbudin]/[devise_openid_authenticatable].png)](http://travis-ci.org/[nbudin]/[devise_openid_authenticatable])
|
2
2
|
==========================
|
3
3
|
|
4
4
|
Written by Nat Budin
|
@@ -10,22 +10,17 @@ devise_openid_authenticatable is [OpenID](http://openid.net) authentication supp
|
|
10
10
|
Requirements
|
11
11
|
------------
|
12
12
|
|
13
|
-
- Devise 1.
|
13
|
+
- Devise 1.3
|
14
14
|
- rack-openid
|
15
15
|
|
16
16
|
Installation
|
17
17
|
------------
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
and add devise_openid_authenticatable to your Gemfile or config/environment.rb as a gem
|
22
|
-
dependency.
|
23
|
-
|
24
|
-
Example
|
25
|
-
-------
|
19
|
+
Add the following to your project's Gemfile:
|
26
20
|
|
27
|
-
|
28
|
-
|
21
|
+
gem "devise_openid_authenticatable"
|
22
|
+
|
23
|
+
Then run `bundle install`.
|
29
24
|
|
30
25
|
Setup
|
31
26
|
-----
|
@@ -62,17 +57,14 @@ aren't using database_authenticatable:
|
|
62
57
|
<p><%= f.submit "Sign in" %></p>
|
63
58
|
<% end -%>
|
64
59
|
|
65
|
-
Finally, you'll need to wire up Rack::OpenID in your Rails configuration
|
66
|
-
|
67
|
-
require 'openid/store/memory'
|
68
|
-
config.middleware.use "Rack::OpenID", OpenID::Store::Memory.new
|
69
|
-
|
70
|
-
(Specifying an OpenID store instance is necessary because Rails 2.3 reinitializes the middleware objects on each request, so in order to ensure that the stored OpenID data is persistent between subsequent requests, we initialize the Memory store upfront and pass in the same instance each time. If you prefer to use a different store, such as the Memcached store, feel free to substitute in the appropriate class here.)
|
71
|
-
|
72
|
-
If you're using Rails 3, you'll need to do this instead, to ensure that Rack::OpenID sits above Warden in the Rack middleware stack:
|
60
|
+
Finally, you'll need to wire up Rack::OpenID in your Rails configuration:
|
73
61
|
|
74
62
|
config.middleware.insert_before(Warden::Manager, Rack::OpenID)
|
75
63
|
|
64
|
+
(Rack::OpenID needs to come before Warden in the middleware stack so that by the time
|
65
|
+
devise_openid_authenticatable tries to authenticate the user, the OpenID response will
|
66
|
+
have already been decoded by Rack::OpenID.)
|
67
|
+
|
76
68
|
Automatically creating users
|
77
69
|
----------------------------
|
78
70
|
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rdoc/task'
|
3
3
|
require 'rspec/mocks/version'
|
4
4
|
require 'rspec/core/rake_task'
|
5
5
|
|
@@ -15,19 +15,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
15
15
|
rdoc.options << '--line-numbers' << '--inline-source'
|
16
16
|
rdoc.rdoc_files.include('README')
|
17
17
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
18
|
-
end
|
19
|
-
|
20
|
-
begin
|
21
|
-
require 'jeweler'
|
22
|
-
Jeweler::Tasks.new do |gemspec|
|
23
|
-
gemspec.name = "devise_openid_authenticatable"
|
24
|
-
gemspec.summary = "OpenID authentication module for Devise"
|
25
|
-
gemspec.description = "OpenID authentication module for Devise using Rack::OpenID"
|
26
|
-
gemspec.email = "natbudin@gmail.com"
|
27
|
-
gemspec.homepage = "http://github.com/nbudin/devise_openid_authenticatable"
|
28
|
-
gemspec.authors = ["Nat Budin"]
|
29
|
-
end
|
30
|
-
Jeweler::GemcutterTasks.new
|
31
|
-
rescue LoadError
|
32
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
33
|
-
end
|
18
|
+
end
|
@@ -1,100 +1,28 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/devise_openid_authenticatable/version', __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Nat Budin"]
|
6
|
+
gem.email = ["natbudin@gmail.com"]
|
7
|
+
gem.description = %q{OpenID authentication module for Devise using Rack::OpenID}
|
8
|
+
gem.summary = %q{OpenID authentication for Devise}
|
9
|
+
gem.homepage = "https://github.com/nbudin/devise_openid_authenticatable"
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"CHANGELOG.rdoc",
|
20
|
-
"Gemfile",
|
21
|
-
"README.md",
|
22
|
-
"Rakefile",
|
23
|
-
"VERSION",
|
24
|
-
"devise_openid_authenticatable.gemspec",
|
25
|
-
"lib/devise_openid_authenticatable.rb",
|
26
|
-
"lib/devise_openid_authenticatable/model.rb",
|
27
|
-
"lib/devise_openid_authenticatable/routes.rb",
|
28
|
-
"lib/devise_openid_authenticatable/schema.rb",
|
29
|
-
"lib/devise_openid_authenticatable/strategy.rb",
|
30
|
-
"rails/init.rb",
|
31
|
-
"spec/model_spec.rb",
|
32
|
-
"spec/scenario/app/controllers/application_controller.rb",
|
33
|
-
"spec/scenario/app/controllers/home_controller.rb",
|
34
|
-
"spec/scenario/app/controllers/sessions_controller.rb",
|
35
|
-
"spec/scenario/app/models/database_user.rb",
|
36
|
-
"spec/scenario/app/models/legacy_user.rb",
|
37
|
-
"spec/scenario/app/models/user.rb",
|
38
|
-
"spec/scenario/app/views/layouts/application.html.erb",
|
39
|
-
"spec/scenario/app/views/sessions/new.html.erb",
|
40
|
-
"spec/scenario/config.ru",
|
41
|
-
"spec/scenario/config/application.rb",
|
42
|
-
"spec/scenario/config/boot.rb",
|
43
|
-
"spec/scenario/config/database.yml",
|
44
|
-
"spec/scenario/config/environment.rb",
|
45
|
-
"spec/scenario/config/environments/development.rb",
|
46
|
-
"spec/scenario/config/environments/test.rb",
|
47
|
-
"spec/scenario/config/initializers/backtrace_silencers.rb",
|
48
|
-
"spec/scenario/config/initializers/inflections.rb",
|
49
|
-
"spec/scenario/config/initializers/secret_token.rb",
|
50
|
-
"spec/scenario/config/routes.rb",
|
51
|
-
"spec/scenario/db/migrate/20100401102949_create_tables.rb",
|
52
|
-
"spec/scenario/db/schema.rb",
|
53
|
-
"spec/spec_helper.rb",
|
54
|
-
"spec/strategy_spec.rb",
|
55
|
-
"spec/support/migrations.rb"
|
56
|
-
]
|
57
|
-
s.homepage = %q{http://github.com/nbudin/devise_openid_authenticatable}
|
58
|
-
s.require_paths = ["lib"]
|
59
|
-
s.rubygems_version = %q{1.5.0}
|
60
|
-
s.summary = %q{OpenID authentication module for Devise}
|
61
|
-
s.test_files = [
|
62
|
-
"spec/model_spec.rb",
|
63
|
-
"spec/scenario/app/controllers/application_controller.rb",
|
64
|
-
"spec/scenario/app/controllers/home_controller.rb",
|
65
|
-
"spec/scenario/app/controllers/sessions_controller.rb",
|
66
|
-
"spec/scenario/app/models/database_user.rb",
|
67
|
-
"spec/scenario/app/models/legacy_user.rb",
|
68
|
-
"spec/scenario/app/models/user.rb",
|
69
|
-
"spec/scenario/config/application.rb",
|
70
|
-
"spec/scenario/config/boot.rb",
|
71
|
-
"spec/scenario/config/environment.rb",
|
72
|
-
"spec/scenario/config/environments/development.rb",
|
73
|
-
"spec/scenario/config/environments/test.rb",
|
74
|
-
"spec/scenario/config/initializers/backtrace_silencers.rb",
|
75
|
-
"spec/scenario/config/initializers/inflections.rb",
|
76
|
-
"spec/scenario/config/initializers/secret_token.rb",
|
77
|
-
"spec/scenario/config/routes.rb",
|
78
|
-
"spec/scenario/db/migrate/20100401102949_create_tables.rb",
|
79
|
-
"spec/scenario/db/schema.rb",
|
80
|
-
"spec/spec_helper.rb",
|
81
|
-
"spec/strategy_spec.rb",
|
82
|
-
"spec/support/migrations.rb"
|
83
|
-
]
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = "devise_openid_authenticatable"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = DeviseOpenidAuthenticatable::VERSION
|
17
|
+
|
18
|
+
gem.add_dependency "rack-openid", ">= 1.2.0"
|
19
|
+
gem.add_dependency "devise", "~> 1.3"
|
84
20
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
s.add_dependency(%q<rack-openid>, [">= 1.2.0"])
|
93
|
-
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
94
|
-
end
|
95
|
-
else
|
96
|
-
s.add_dependency(%q<rack-openid>, [">= 1.2.0"])
|
97
|
-
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
98
|
-
end
|
21
|
+
gem.add_development_dependency 'rails', '~> 3.0.0'
|
22
|
+
gem.add_development_dependency "rspec", "~> 2.3"
|
23
|
+
gem.add_development_dependency "rspec-rails", "~> 2.3"
|
24
|
+
gem.add_development_dependency "mocha"
|
25
|
+
gem.add_development_dependency "sqlite3-ruby"
|
26
|
+
gem.add_development_dependency "sham_rack"
|
27
|
+
gem.add_development_dependency "webrat"
|
99
28
|
end
|
100
|
-
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{devise_openid_authenticatable}
|
8
|
+
s.version = "1.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Nat Budin"]
|
12
|
+
s.date = %q{2011-05-31}
|
13
|
+
s.description = %q{OpenID authentication module for Devise using Rack::OpenID}
|
14
|
+
s.email = %q{natbudin@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.md"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"CHANGELOG.rdoc",
|
20
|
+
"Gemfile",
|
21
|
+
"README.md",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"devise_openid_authenticatable.gemspec",
|
25
|
+
"lib/devise_openid_authenticatable.rb",
|
26
|
+
"lib/devise_openid_authenticatable/model.rb",
|
27
|
+
"lib/devise_openid_authenticatable/routes.rb",
|
28
|
+
"lib/devise_openid_authenticatable/schema.rb",
|
29
|
+
"lib/devise_openid_authenticatable/strategy.rb",
|
30
|
+
"rails/init.rb",
|
31
|
+
"spec/model_spec.rb",
|
32
|
+
"spec/scenario/app/controllers/application_controller.rb",
|
33
|
+
"spec/scenario/app/controllers/home_controller.rb",
|
34
|
+
"spec/scenario/app/controllers/sessions_controller.rb",
|
35
|
+
"spec/scenario/app/models/database_user.rb",
|
36
|
+
"spec/scenario/app/models/legacy_user.rb",
|
37
|
+
"spec/scenario/app/models/user.rb",
|
38
|
+
"spec/scenario/app/views/layouts/application.html.erb",
|
39
|
+
"spec/scenario/app/views/sessions/new.html.erb",
|
40
|
+
"spec/scenario/config.ru",
|
41
|
+
"spec/scenario/config/application.rb",
|
42
|
+
"spec/scenario/config/boot.rb",
|
43
|
+
"spec/scenario/config/database.yml",
|
44
|
+
"spec/scenario/config/environment.rb",
|
45
|
+
"spec/scenario/config/environments/development.rb",
|
46
|
+
"spec/scenario/config/environments/test.rb",
|
47
|
+
"spec/scenario/config/initializers/backtrace_silencers.rb",
|
48
|
+
"spec/scenario/config/initializers/inflections.rb",
|
49
|
+
"spec/scenario/config/initializers/secret_token.rb",
|
50
|
+
"spec/scenario/config/routes.rb",
|
51
|
+
"spec/scenario/db/migrate/20100401102949_create_tables.rb",
|
52
|
+
"spec/scenario/db/schema.rb",
|
53
|
+
"spec/spec_helper.rb",
|
54
|
+
"spec/strategy_spec.rb",
|
55
|
+
"spec/support/migrations.rb"
|
56
|
+
]
|
57
|
+
s.homepage = %q{http://github.com/nbudin/devise_openid_authenticatable}
|
58
|
+
s.require_paths = ["lib"]
|
59
|
+
s.rubygems_version = %q{1.5.0}
|
60
|
+
s.summary = %q{OpenID authentication module for Devise}
|
61
|
+
s.test_files = [
|
62
|
+
"spec/model_spec.rb",
|
63
|
+
"spec/scenario/app/controllers/application_controller.rb",
|
64
|
+
"spec/scenario/app/controllers/home_controller.rb",
|
65
|
+
"spec/scenario/app/controllers/sessions_controller.rb",
|
66
|
+
"spec/scenario/app/models/database_user.rb",
|
67
|
+
"spec/scenario/app/models/legacy_user.rb",
|
68
|
+
"spec/scenario/app/models/user.rb",
|
69
|
+
"spec/scenario/config/application.rb",
|
70
|
+
"spec/scenario/config/boot.rb",
|
71
|
+
"spec/scenario/config/environment.rb",
|
72
|
+
"spec/scenario/config/environments/development.rb",
|
73
|
+
"spec/scenario/config/environments/test.rb",
|
74
|
+
"spec/scenario/config/initializers/backtrace_silencers.rb",
|
75
|
+
"spec/scenario/config/initializers/inflections.rb",
|
76
|
+
"spec/scenario/config/initializers/secret_token.rb",
|
77
|
+
"spec/scenario/config/routes.rb",
|
78
|
+
"spec/scenario/db/migrate/20100401102949_create_tables.rb",
|
79
|
+
"spec/scenario/db/schema.rb",
|
80
|
+
"spec/spec_helper.rb",
|
81
|
+
"spec/strategy_spec.rb",
|
82
|
+
"spec/support/migrations.rb"
|
83
|
+
]
|
84
|
+
|
85
|
+
if s.respond_to? :specification_version then
|
86
|
+
s.specification_version = 3
|
87
|
+
|
88
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
89
|
+
s.add_runtime_dependency(%q<rack-openid>, [">= 1.2.0"])
|
90
|
+
s.add_runtime_dependency(%q<devise>, [">= 1.0.6"])
|
91
|
+
else
|
92
|
+
s.add_dependency(%q<rack-openid>, [">= 1.2.0"])
|
93
|
+
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
94
|
+
end
|
95
|
+
else
|
96
|
+
s.add_dependency(%q<rack-openid>, [">= 1.2.0"])
|
97
|
+
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
@@ -2,10 +2,9 @@ require 'devise'
|
|
2
2
|
|
3
3
|
require 'devise_openid_authenticatable/schema'
|
4
4
|
require 'devise_openid_authenticatable/strategy'
|
5
|
-
require 'devise_openid_authenticatable/routes'
|
6
5
|
|
7
6
|
Devise.add_module :openid_authenticatable,
|
8
7
|
:strategy => true,
|
9
8
|
:model => 'devise_openid_authenticatable/model',
|
10
9
|
:controller => :sessions,
|
11
|
-
:route => :
|
10
|
+
:route => :session
|
@@ -1,14 +1,7 @@
|
|
1
1
|
require 'devise/strategies/base'
|
2
2
|
require 'rack/openid'
|
3
3
|
|
4
|
-
|
5
|
-
Devise::Strategies::Authenticatable
|
6
|
-
rescue
|
7
|
-
Devise::Strategies::Base
|
8
|
-
end
|
9
|
-
|
10
|
-
class Devise::Strategies::OpenidAuthenticatable < base_class
|
11
|
-
|
4
|
+
class Devise::Strategies::OpenidAuthenticatable < Devise::Strategies::Authenticatable
|
12
5
|
def valid?
|
13
6
|
valid_mapping? && ( provider_response? || identity_param? )
|
14
7
|
end
|
@@ -32,12 +25,12 @@ class Devise::Strategies::OpenidAuthenticatable < base_class
|
|
32
25
|
# Handles incoming provider response
|
33
26
|
def handle_response!
|
34
27
|
logger.debug "Attempting OpenID auth: #{provider_response.inspect}"
|
35
|
-
|
28
|
+
|
36
29
|
case provider_response.status
|
37
30
|
when :success
|
38
31
|
resource = find_resource || build_resource || create_resource
|
39
32
|
|
40
|
-
if resource
|
33
|
+
if resource && validate(resource)
|
41
34
|
begin
|
42
35
|
update_resource!(resource)
|
43
36
|
rescue
|
data/spec/strategy_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_openid_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
7
|
+
- 1
|
8
8
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
9
|
+
version: 1.1.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Nat Budin
|
@@ -15,61 +14,161 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-12-08 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
21
|
+
name: rack-openid
|
22
|
+
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 31
|
29
28
|
segments:
|
30
29
|
- 1
|
31
30
|
- 2
|
32
31
|
- 0
|
33
32
|
version: 1.2.0
|
34
|
-
|
33
|
+
type: :runtime
|
35
34
|
version_requirements: *id001
|
36
|
-
prerelease: false
|
37
35
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
36
|
+
name: devise
|
37
|
+
prerelease: false
|
39
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
|
-
- -
|
41
|
+
- - ~>
|
43
42
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 27
|
45
43
|
segments:
|
46
44
|
- 1
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
name: devise
|
45
|
+
- 3
|
46
|
+
version: "1.3"
|
47
|
+
type: :runtime
|
51
48
|
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rails
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 3
|
59
|
+
- 0
|
60
|
+
- 0
|
61
|
+
version: 3.0.0
|
62
|
+
type: :development
|
63
|
+
version_requirements: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: rspec
|
52
66
|
prerelease: false
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ~>
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
segments:
|
73
|
+
- 2
|
74
|
+
- 3
|
75
|
+
version: "2.3"
|
76
|
+
type: :development
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec-rails
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
segments:
|
87
|
+
- 2
|
88
|
+
- 3
|
89
|
+
version: "2.3"
|
90
|
+
type: :development
|
91
|
+
version_requirements: *id005
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: mocha
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
type: :development
|
104
|
+
version_requirements: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: sqlite3-ruby
|
107
|
+
prerelease: false
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
version: "0"
|
116
|
+
type: :development
|
117
|
+
version_requirements: *id007
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: sham_rack
|
120
|
+
prerelease: false
|
121
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
129
|
+
type: :development
|
130
|
+
version_requirements: *id008
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: webrat
|
133
|
+
prerelease: false
|
134
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
version: "0"
|
142
|
+
type: :development
|
143
|
+
version_requirements: *id009
|
53
144
|
description: OpenID authentication module for Devise using Rack::OpenID
|
54
|
-
email:
|
145
|
+
email:
|
146
|
+
- natbudin@gmail.com
|
55
147
|
executables: []
|
56
148
|
|
57
149
|
extensions: []
|
58
150
|
|
59
|
-
extra_rdoc_files:
|
60
|
-
|
151
|
+
extra_rdoc_files: []
|
152
|
+
|
61
153
|
files:
|
154
|
+
- .gitignore
|
155
|
+
- .travis.yml
|
62
156
|
- CHANGELOG.rdoc
|
63
157
|
- Gemfile
|
158
|
+
- Gemfile.devise13
|
159
|
+
- Gemfile.devise14
|
160
|
+
- Gemfile.devise15
|
161
|
+
- LICENSE
|
64
162
|
- README.md
|
65
163
|
- Rakefile
|
66
164
|
- VERSION
|
67
165
|
- devise_openid_authenticatable.gemspec
|
166
|
+
- devise_openid_authenticatable.gemspec.bak
|
68
167
|
- lib/devise_openid_authenticatable.rb
|
69
168
|
- lib/devise_openid_authenticatable/model.rb
|
70
|
-
- lib/devise_openid_authenticatable/routes.rb
|
71
169
|
- lib/devise_openid_authenticatable/schema.rb
|
72
170
|
- lib/devise_openid_authenticatable/strategy.rb
|
171
|
+
- lib/devise_openid_authenticatable/version.rb
|
73
172
|
- rails/init.rb
|
74
173
|
- spec/model_spec.rb
|
75
174
|
- spec/scenario/app/controllers/application_controller.rb
|
@@ -97,7 +196,7 @@ files:
|
|
97
196
|
- spec/strategy_spec.rb
|
98
197
|
- spec/support/migrations.rb
|
99
198
|
has_rdoc: true
|
100
|
-
homepage:
|
199
|
+
homepage: https://github.com/nbudin/devise_openid_authenticatable
|
101
200
|
licenses: []
|
102
201
|
|
103
202
|
post_install_message:
|
@@ -110,7 +209,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
209
|
requirements:
|
111
210
|
- - ">="
|
112
211
|
- !ruby/object:Gem::Version
|
113
|
-
hash: 3
|
114
212
|
segments:
|
115
213
|
- 0
|
116
214
|
version: "0"
|
@@ -119,17 +217,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
217
|
requirements:
|
120
218
|
- - ">="
|
121
219
|
- !ruby/object:Gem::Version
|
122
|
-
hash: 3
|
123
220
|
segments:
|
124
221
|
- 0
|
125
222
|
version: "0"
|
126
223
|
requirements: []
|
127
224
|
|
128
225
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.
|
226
|
+
rubygems_version: 1.3.7
|
130
227
|
signing_key:
|
131
228
|
specification_version: 3
|
132
|
-
summary: OpenID authentication
|
229
|
+
summary: OpenID authentication for Devise
|
133
230
|
test_files:
|
134
231
|
- spec/model_spec.rb
|
135
232
|
- spec/scenario/app/controllers/application_controller.rb
|
@@ -138,8 +235,12 @@ test_files:
|
|
138
235
|
- spec/scenario/app/models/database_user.rb
|
139
236
|
- spec/scenario/app/models/legacy_user.rb
|
140
237
|
- spec/scenario/app/models/user.rb
|
238
|
+
- spec/scenario/app/views/layouts/application.html.erb
|
239
|
+
- spec/scenario/app/views/sessions/new.html.erb
|
240
|
+
- spec/scenario/config.ru
|
141
241
|
- spec/scenario/config/application.rb
|
142
242
|
- spec/scenario/config/boot.rb
|
243
|
+
- spec/scenario/config/database.yml
|
143
244
|
- spec/scenario/config/environment.rb
|
144
245
|
- spec/scenario/config/environments/development.rb
|
145
246
|
- spec/scenario/config/environments/test.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
if ActionController::Routing.name =~ /ActionDispatch/
|
2
|
-
# We're on Rails 3
|
3
|
-
ActionDispatch::Routing::Mapper.class_eval do
|
4
|
-
protected
|
5
|
-
|
6
|
-
alias_method :devise_openid, :devise_session
|
7
|
-
end
|
8
|
-
else
|
9
|
-
# We're on Rails 2
|
10
|
-
|
11
|
-
ActionController::Routing::RouteSet::Mapper.class_eval do
|
12
|
-
protected
|
13
|
-
|
14
|
-
alias_method :openid_authenticatable, :database_authenticatable
|
15
|
-
end
|
16
|
-
end
|