slayer-authlogic_rpx 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +6 -1
- data/authlogic_rpx.gemspec +101 -0
- data/generators/add_authlogic_rpx_migration/templates/migration_internal_mapping.rb +1 -0
- data/lib/authlogic_rpx/acts_as_authentic.rb +4 -4
- data/lib/authlogic_rpx/rpx_identifier.rb +1 -0
- data/lib/authlogic_rpx/session.rb +1 -1
- data/lib/authlogic_rpx/version.rb +1 -1
- data/slayer-authlogic_rpx.gemspec +3 -2
- metadata +5 -4
data/README.rdoc
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
= Authlogic_RPX
|
2
2
|
|
3
|
+
== Slayer's Changes
|
4
|
+
* update required authlogic version to 3.0.3
|
5
|
+
* added rpx_data_valid? hook
|
6
|
+
* store rpx_data in RPXIdentifier model
|
7
|
+
|
3
8
|
== Purpose
|
4
9
|
|
5
10
|
Authlogic_RPX is an Authlogic extension library that provides support for authentication using the Janrain Engage (formerly RPX) multi-authentication service offered by JanRain. To use RPX, you must first register your application at {Janrain Engage}[http://rpxnow.com/]. A free "Basic" account is available, in addition to paid enhanced versions. All work with Authlogic_RPX.
|
@@ -752,4 +757,4 @@ The idea of adding RPX support to authlogic is not new. Some early ideas were fo
|
|
752
757
|
* <b>http://github.com/gampleman/authlogic_rpx/</b> similar, but including an implementation of the RPX api
|
753
758
|
|
754
759
|
authlogic_rpx was created by Paul Gallagher (tardate.com) and released under the MIT license.
|
755
|
-
Big thanks for contributions from {Joris}[http://github.com/trooster], {John}[http://gitub.com/jjb], {Damir}[http://gitub.com/sidonath], {Ben}[http://github.com/Empact]
|
760
|
+
Big thanks for contributions from {Joris}[http://github.com/trooster], {John}[http://gitub.com/jjb], {Damir}[http://gitub.com/sidonath], {Ben}[http://github.com/Empact]
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{authlogic_rpx}
|
8
|
+
s.version = "1.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Paul Gallagher / tardate <gallagher.paul@gmail.com>"]
|
12
|
+
s.date = %q{2010-09-28}
|
13
|
+
s.description = %q{Authlogic extension/plugin that provides RPX (rpxnow.com) authentication support}
|
14
|
+
s.email = %q{gallagher.paul@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"CHANGELOG.rdoc",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"Manifest",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"authlogic_rpx.gemspec",
|
25
|
+
"generators/add_authlogic_rpx_migration/USAGE",
|
26
|
+
"generators/add_authlogic_rpx_migration/add_authlogic_rpx_migration_generator.rb",
|
27
|
+
"generators/add_authlogic_rpx_migration/templates/migration_internal_mapping.rb",
|
28
|
+
"generators/add_authlogic_rpx_migration/templates/migration_no_mapping.rb",
|
29
|
+
"init.rb",
|
30
|
+
"lib/authlogic_rpx.rb",
|
31
|
+
"lib/authlogic_rpx/acts_as_authentic.rb",
|
32
|
+
"lib/authlogic_rpx/helper.rb",
|
33
|
+
"lib/authlogic_rpx/rpx_identifier.rb",
|
34
|
+
"lib/authlogic_rpx/session.rb",
|
35
|
+
"lib/authlogic_rpx/version.rb",
|
36
|
+
"rails/init.rb",
|
37
|
+
"test/fixtures/rpxresponses.yml",
|
38
|
+
"test/fixtures/users.yml",
|
39
|
+
"test/integration/basic_authentication_and_registration_test.rb",
|
40
|
+
"test/integration/internal_mapping/basic_authentication_and_registration_test.rb",
|
41
|
+
"test/integration/internal_mapping/settings_test.rb",
|
42
|
+
"test/integration/no_mapping/basic_authentication_and_registration_test.rb",
|
43
|
+
"test/integration/no_mapping/settings_test.rb",
|
44
|
+
"test/libs/ext_test_unit.rb",
|
45
|
+
"test/libs/mock_rpx_now.rb",
|
46
|
+
"test/libs/rails_trickery.rb",
|
47
|
+
"test/libs/rpxresponse.rb",
|
48
|
+
"test/libs/user.rb",
|
49
|
+
"test/libs/user_session.rb",
|
50
|
+
"test/test_helper.rb",
|
51
|
+
"test/test_internal_mapping_helper.rb",
|
52
|
+
"test/unit/acts_as_authentic_settings_test.rb",
|
53
|
+
"test/unit/session_settings_test.rb",
|
54
|
+
"test/unit/session_validation_test.rb",
|
55
|
+
"test/unit/verify_rpx_mock_test.rb"
|
56
|
+
]
|
57
|
+
s.homepage = %q{http://github.com/tardate/authlogic_rpx}
|
58
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
59
|
+
s.require_paths = ["lib"]
|
60
|
+
s.rubygems_version = %q{1.3.7}
|
61
|
+
s.summary = %q{Authlogic plug-in for RPX support}
|
62
|
+
s.test_files = [
|
63
|
+
"test/integration/basic_authentication_and_registration_test.rb",
|
64
|
+
"test/integration/internal_mapping/basic_authentication_and_registration_test.rb",
|
65
|
+
"test/integration/internal_mapping/settings_test.rb",
|
66
|
+
"test/integration/no_mapping/basic_authentication_and_registration_test.rb",
|
67
|
+
"test/integration/no_mapping/settings_test.rb",
|
68
|
+
"test/libs/ext_test_unit.rb",
|
69
|
+
"test/libs/mock_rpx_now.rb",
|
70
|
+
"test/libs/rails_trickery.rb",
|
71
|
+
"test/libs/rpxresponse.rb",
|
72
|
+
"test/libs/user.rb",
|
73
|
+
"test/libs/user_session.rb",
|
74
|
+
"test/test_helper.rb",
|
75
|
+
"test/test_internal_mapping_helper.rb",
|
76
|
+
"test/unit/acts_as_authentic_settings_test.rb",
|
77
|
+
"test/unit/session_settings_test.rb",
|
78
|
+
"test/unit/session_validation_test.rb",
|
79
|
+
"test/unit/verify_rpx_mock_test.rb"
|
80
|
+
]
|
81
|
+
|
82
|
+
if s.respond_to? :specification_version then
|
83
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
84
|
+
s.specification_version = 3
|
85
|
+
|
86
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
87
|
+
s.add_runtime_dependency(%q<authlogic>, ["= 2.1.6"])
|
88
|
+
s.add_runtime_dependency(%q<rpx_now>, ["= 0.6.23"])
|
89
|
+
s.add_development_dependency(%q<test-unit>, [">= 2.1.1"])
|
90
|
+
else
|
91
|
+
s.add_dependency(%q<authlogic>, ["= 2.1.6"])
|
92
|
+
s.add_dependency(%q<rpx_now>, ["= 0.6.23"])
|
93
|
+
s.add_dependency(%q<test-unit>, [">= 2.1.1"])
|
94
|
+
end
|
95
|
+
else
|
96
|
+
s.add_dependency(%q<authlogic>, ["= 2.1.6"])
|
97
|
+
s.add_dependency(%q<rpx_now>, ["= 0.6.23"])
|
98
|
+
s.add_dependency(%q<test-unit>, [">= 2.1.1"])
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
@@ -179,7 +179,7 @@ module AuthlogicRpx
|
|
179
179
|
after_merge_rpx_data( another_user, self )
|
180
180
|
|
181
181
|
else
|
182
|
-
self.add_rpx_identifier( rpx_id, rpx_provider_name )
|
182
|
+
self.add_rpx_identifier( rpx_id, rpx_provider_name, added_rpx_data)
|
183
183
|
end
|
184
184
|
end
|
185
185
|
|
@@ -233,7 +233,7 @@ module AuthlogicRpx
|
|
233
233
|
# adds RPX identification to the instance.
|
234
234
|
# Abstracts how the RPX identifier is added to allow for multiplicity of underlying implementations
|
235
235
|
#
|
236
|
-
def add_rpx_identifier( rpx_id, rpx_provider_name )
|
236
|
+
def add_rpx_identifier( rpx_id, rpx_provider_name, rpx_data = {})
|
237
237
|
self.rpx_identifier = rpx_id
|
238
238
|
#TODO: make rpx_provider_name a std param?
|
239
239
|
end
|
@@ -274,8 +274,8 @@ module AuthlogicRpx
|
|
274
274
|
# adds RPX identification to the instance.
|
275
275
|
# Abstracts how the RPX identifier is added to allow for multiplicity of underlying implementations
|
276
276
|
#
|
277
|
-
def add_rpx_identifier( rpx_id, rpx_provider_name )
|
278
|
-
self.rpx_identifiers.build(:identifier => rpx_id, :provider_name => rpx_provider_name )
|
277
|
+
def add_rpx_identifier( rpx_id, rpx_provider_name, rpx_data = {} )
|
278
|
+
self.rpx_identifiers.build(:identifier => rpx_id, :provider_name => rpx_provider_name, :rpx_data => rpx_data )
|
279
279
|
end
|
280
280
|
|
281
281
|
# Checks if given identifier is an identity for this account
|
@@ -170,7 +170,7 @@ module AuthlogicRpx
|
|
170
170
|
# get caught in a self-referential hell, since both session and
|
171
171
|
# user objects invoke each other upon save
|
172
172
|
self.new_registration = true
|
173
|
-
self.attempted_record.add_rpx_identifier( rpx_id, rpx_provider_name)
|
173
|
+
self.attempted_record.add_rpx_identifier( rpx_id, rpx_provider_name, @rpx_data)
|
174
174
|
self.attempted_record.save_without_session_maintenance
|
175
175
|
else
|
176
176
|
errors.add_to_base("We did not find any accounts with that login. Enter your details and create an account.")
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{slayer-authlogic_rpx}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Gallagher / tardate <gallagher.paul@gmail.com>", "Vladislav Moskovets <github@vlad.org.ua>"]
|
12
|
-
s.date = %q{2011-07-
|
12
|
+
s.date = %q{2011-07-08}
|
13
13
|
s.description = %q{Authlogic extension/plugin that provides RPX (rpxnow.com) authentication support}
|
14
14
|
s.email = %q{gallagher.paul@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
"Manifest",
|
23
23
|
"README.rdoc",
|
24
24
|
"Rakefile",
|
25
|
+
"authlogic_rpx.gemspec",
|
25
26
|
"generators/add_authlogic_rpx_migration/USAGE",
|
26
27
|
"generators/add_authlogic_rpx_migration/add_authlogic_rpx_migration_generator.rb",
|
27
28
|
"generators/add_authlogic_rpx_migration/templates/migration_internal_mapping.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slayer-authlogic_rpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Gallagher / tardate <gallagher.paul@gmail.com>
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-07-
|
19
|
+
date: 2011-07-08 00:00:00 +03:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- Manifest
|
83
83
|
- README.rdoc
|
84
84
|
- Rakefile
|
85
|
+
- authlogic_rpx.gemspec
|
85
86
|
- generators/add_authlogic_rpx_migration/USAGE
|
86
87
|
- generators/add_authlogic_rpx_migration/add_authlogic_rpx_migration_generator.rb
|
87
88
|
- generators/add_authlogic_rpx_migration/templates/migration_internal_mapping.rb
|