authlogic-oid 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -1
- data/README.rdoc +5 -0
- data/Rakefile +1 -0
- data/lib/authlogic_openid.rb +4 -2
- data/lib/authlogic_openid/acts_as_authentic.rb +4 -4
- data/lib/authlogic_openid/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
Authlogic OpenID is an extension of the Authlogic library to add OpenID support. Authlogic v2.0 introduced an enhanced API that makes "plugging in" alternate authentication methods as easy as installing a gem.
|
4
4
|
|
5
|
+
== Helpful links
|
6
|
+
|
7
|
+
* <b>Documentation:</b> http://authlogic.rubyforge.org
|
8
|
+
* <b>Authlogic:</b> http://github.com/binarylogic/authlogic
|
9
|
+
|
5
10
|
== Install and use
|
6
11
|
|
7
12
|
=== 1. Make some simple changes to your database:
|
data/Rakefile
CHANGED
@@ -15,6 +15,7 @@ Hoe.new("Authlogic OpenID", AuthlogicOpenid::Version::STRING) do |p|
|
|
15
15
|
p.history_file = "CHANGELOG.rdoc"
|
16
16
|
p.readme_file = "README.rdoc"
|
17
17
|
p.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"]
|
18
|
+
p.remote_rdoc_dir = ''
|
18
19
|
p.test_globs = ["test/*/test_*.rb", "test/*_test.rb", "test/*/*_test.rb"]
|
19
20
|
p.extra_deps = %w(authlogic)
|
20
21
|
end
|
data/lib/authlogic_openid.rb
CHANGED
@@ -2,5 +2,7 @@ require "authlogic_openid/version"
|
|
2
2
|
require "authlogic_openid/acts_as_authentic"
|
3
3
|
require "authlogic_openid/session"
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
config.to_prepare do
|
6
|
+
ActiveRecord::Base.send(:include, AuthlogicOpenid::ActsAsAuthentic)
|
7
|
+
Authlogic::Session::Base.send(:include, AuthlogicOpenid::Session)
|
8
|
+
end
|
@@ -8,10 +8,7 @@ module AuthlogicOpenid
|
|
8
8
|
# OpenID is being used.
|
9
9
|
def self.included(klass)
|
10
10
|
klass.class_eval do
|
11
|
-
add_acts_as_authentic_module(Methods)
|
12
|
-
validates_length_of_password_field_options validates_length_of_password_field_options.merge(:if => :validate_password_with_openid?)
|
13
|
-
validates_confirmation_of_password_field_options validates_confirmation_of_password_field_options.merge(:if => :validate_password_with_openid?)
|
14
|
-
validates_length_of_password_confirmation_field_options validates_length_of_password_confirmation_field_options.merge(:if => :validate_password_with_openid?)
|
11
|
+
add_acts_as_authentic_module(Methods, :prepend)
|
15
12
|
end
|
16
13
|
end
|
17
14
|
|
@@ -21,6 +18,9 @@ module AuthlogicOpenid
|
|
21
18
|
klass.class_eval do
|
22
19
|
validates_uniqueness_of :openid_identifier, :scope => validations_scope, :if => :using_openid?
|
23
20
|
validate :validate_openid
|
21
|
+
validates_length_of_password_field_options validates_length_of_password_field_options.merge(:if => :validate_password_with_openid?)
|
22
|
+
validates_confirmation_of_password_field_options validates_confirmation_of_password_field_options.merge(:if => :validate_password_with_openid?)
|
23
|
+
validates_length_of_password_confirmation_field_options validates_length_of_password_confirmation_field_options.merge(:if => :validate_password_with_openid?)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic-oid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Johnson of Binary Logic
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-30 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|