openid_couch_rest_model_store 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module OpenID
16
16
  :server_url => server_url,
17
17
  :target => targetize(server_url),
18
18
  :handle => association.handle,
19
- :secret => association.secret,
19
+ :secret => OpenID::Util.to_base64(association.secret),
20
20
  :issued_at => association.issued,
21
21
  :lifetime => association.lifetime,
22
22
  :assoc_type => association.assoc_type
@@ -99,7 +99,7 @@ module OpenID
99
99
  def build_association(open_id_association)
100
100
  OpenID::Association.new(
101
101
  open_id_association.handle,
102
- open_id_association.secret,
102
+ OpenID::Util.from_base64(open_id_association.secret),
103
103
  open_id_association.issued_at,
104
104
  open_id_association.lifetime,
105
105
  open_id_association.assoc_type
@@ -1,4 +1,5 @@
1
1
  require 'rails/engine'
2
+ require 'openid/store/couch_rest_model'
2
3
 
3
4
  module OpenidCouchRestModelStore
4
5
  class Engine < Rails::Engine
@@ -41,7 +41,7 @@ class OpenidStoreCouchRestModelTest < ActiveSupport::TestCase
41
41
  end
42
42
 
43
43
  def _gen_assoc(issued_at, lifetime=600)
44
- secret = _gen_secret(20, @@allowed_handle)
44
+ secret = _gen_secret(20)
45
45
  handle = _gen_handle(128)
46
46
  OpenID::Association.new(handle, secret, Time.now + issued_at, lifetime,
47
47
  'HMAC-SHA1')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openid_couch_rest_model_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2012-03-20 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &2157336460 !ruby/object:Gem::Requirement
18
+ requirement: &2161495340 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '3'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2157336460
26
+ version_requirements: *2161495340
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-openid
29
- requirement: &2157336080 !ruby/object:Gem::Requirement
29
+ requirement: &2161494960 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2157336080
37
+ version_requirements: *2161494960
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: couchrest_model
40
- requirement: &2157335520 !ruby/object:Gem::Requirement
40
+ requirement: &2161494400 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: '1.0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2157335520
48
+ version_requirements: *2161494400
49
49
  description: A CouchRestModel store for OpenID, forked from a very similar ActiveRecord
50
50
  store written by James Tucker and Kazuyoshi Tlacaelel
51
51
  email: info@wildfireapp.com