active_record_openid_store 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm
|
1
|
+
rvm --create ruby-1.9.3-p125@active_record_openid_store
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
=ActiveRecord Based OpenID Store
|
2
2
|
|
3
|
-
A store is required by an OpenID server and optionally by the consumer to store associations, nonces, and auth key information across requests and processes. If rails is distributed across several machines, they must must all have access to the same OpenID store data, so the FilesystemStore won't do.
|
3
|
+
A store is required by an OpenID server and optionally by the consumer to store associations, nonces, and auth key information across requests and processes. If rails is distributed across several machines, they must must all have access to the same OpenID store data, so the FilesystemStore won't do.
|
4
4
|
|
5
5
|
This directory contains a plugin for connecting your OpenID enabled rails app to an ActiveRecord based OpenID store. <b>The code here is copied from the {openid-ruby library}[https://github.com/openid/ruby-openid] examples (https://github.com/openid/ruby-openid/tree/master/examples/active_record_openid_store)</b>. All I did was move some things around, add a namespace and package it all up as a rails engine/plugin, with some conveniences, for use with Rails 3.
|
6
6
|
|
@@ -26,7 +26,7 @@ At this stage you're essentially good to go, you can create a new store like thi
|
|
26
26
|
|
27
27
|
You can do this anywhere in your Rails app.
|
28
28
|
|
29
|
-
==What about garbage collection?
|
29
|
+
==What about garbage collection?
|
30
30
|
|
31
31
|
Adding the +active_record_openid_store+ gem to your Gemfile also gives you access to the <tt>openid:gc</tt> rake task. You may use this task at any time to clean up any expired nonces and associations.
|
32
32
|
|
@@ -42,7 +42,7 @@ In your <tt>config/initializers/omniauth.rb</tt>:
|
|
42
42
|
|
43
43
|
|
44
44
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
45
|
-
provider :openid, ActiveRecordOpenidStore::ActiveRecordStore.new, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
|
45
|
+
provider :openid, :store => ActiveRecordOpenidStore::ActiveRecordStore.new, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
|
46
46
|
end
|
47
47
|
|
48
48
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.rubyforge_project = "active_record_openid_store"
|
15
15
|
|
16
16
|
s.add_dependency 'ruby-openid', '~> 2.1.0'
|
17
|
-
s.add_dependency 'activerecord', '
|
17
|
+
s.add_dependency 'activerecord', '> 3.0.0'
|
18
18
|
|
19
19
|
s.add_development_dependency 'rake'
|
20
20
|
s.add_development_dependency 'rspec', '~> 2.5.0'
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require 'openid/association'
|
1
|
+
require 'openid/association'
|
2
2
|
require 'time'
|
3
3
|
require 'active_record'
|
4
4
|
|
5
5
|
class ActiveRecordOpenidStore::Association < ActiveRecord::Base
|
6
|
-
|
6
|
+
self.table_name= 'open_id_associations'
|
7
|
+
attr_accessible :server_url, :handle, :secret, :issued, :lifetime, :assoc_type
|
7
8
|
def from_record
|
8
9
|
OpenID::Association.new(handle, secret, Time.at(issued), lifetime, assoc_type)
|
9
10
|
end
|
10
11
|
end
|
11
|
-
|
metadata
CHANGED
@@ -1,83 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_openid_store
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Alan Skorkin
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-07-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: ruby-openid
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
18
|
+
requirements:
|
22
19
|
- - ~>
|
23
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
24
21
|
version: 2.1.0
|
25
22
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activerecord
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
25
|
none: false
|
32
|
-
requirements:
|
26
|
+
requirements:
|
33
27
|
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: activerecord
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>'
|
36
|
+
- !ruby/object:Gem::Version
|
35
37
|
version: 3.0.0
|
36
38
|
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: rake
|
40
39
|
prerelease: false
|
41
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
41
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
42
|
+
requirements:
|
43
|
+
- - ! '>'
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
47
54
|
type: :development
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rspec
|
51
55
|
prerelease: false
|
52
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
57
|
none: false
|
54
|
-
requirements:
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
55
67
|
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
68
|
+
- !ruby/object:Gem::Version
|
57
69
|
version: 2.5.0
|
58
70
|
type: :development
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: json
|
62
71
|
prerelease: false
|
63
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.5.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: json
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
64
81
|
none: false
|
65
|
-
requirements:
|
82
|
+
requirements:
|
66
83
|
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
84
|
+
- !ruby/object:Gem::Version
|
68
85
|
version: 1.4.3
|
69
86
|
type: :development
|
70
|
-
|
71
|
-
|
72
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.4.3
|
94
|
+
description: A store is required by an OpenID server and optionally by the consumer
|
95
|
+
to store associations, nonces, and auth key information across requests and processes.
|
96
|
+
If rails is distributed across several machines, they must must all have access
|
97
|
+
to the same OpenID store data, so the FilesystemStore won't do. The code here is
|
98
|
+
copied from the openid-ruby library examples. All I did was move some things around,
|
99
|
+
add a namespace and package it all up as a rails engine/plugin, with some conveniences,
|
100
|
+
for use with Rails 3.
|
101
|
+
email:
|
73
102
|
- alan@skorks.com
|
74
103
|
executables: []
|
75
|
-
|
76
104
|
extensions: []
|
77
|
-
|
78
105
|
extra_rdoc_files: []
|
79
|
-
|
80
|
-
files:
|
106
|
+
files:
|
81
107
|
- .gitignore
|
82
108
|
- .rspec
|
83
109
|
- .rvmrc
|
@@ -98,34 +124,30 @@ files:
|
|
98
124
|
- spec/spec_helper.rb
|
99
125
|
- test/store_test.rb
|
100
126
|
- todos.txt
|
101
|
-
has_rdoc: true
|
102
127
|
homepage: https://github.com/skorks/active_record_openid_store
|
103
128
|
licenses: []
|
104
|
-
|
105
129
|
post_install_message:
|
106
130
|
rdoc_options: []
|
107
|
-
|
108
|
-
require_paths:
|
131
|
+
require_paths:
|
109
132
|
- lib
|
110
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
134
|
none: false
|
112
|
-
requirements:
|
113
|
-
- -
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version:
|
116
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
140
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version:
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
122
145
|
requirements: []
|
123
|
-
|
124
146
|
rubyforge_project: active_record_openid_store
|
125
|
-
rubygems_version: 1.
|
147
|
+
rubygems_version: 1.8.21
|
126
148
|
signing_key:
|
127
149
|
specification_version: 3
|
128
150
|
summary: An Active Record-based OpenID store
|
129
|
-
test_files:
|
151
|
+
test_files:
|
130
152
|
- spec/spec_helper.rb
|
131
153
|
- test/store_test.rb
|