omniauth-dice 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73fcf4e82f7a3cb5bc51b896ba05690bce329dfc
4
- data.tar.gz: 9e49e6eb58ccfe61db6021e6decbecf98ba241d9
3
+ metadata.gz: d3e3c1ff7fd4f0c7142db67485b2b0703ad6b2cf
4
+ data.tar.gz: 26df981c24baad50882bc51060fad08f249bc1f2
5
5
  SHA512:
6
- metadata.gz: b33a3be497f0ce1335f3c364c272e6c1594cce756d3306c871b92d35cb4eb34f21016e84c65bd1ca2d9af7a6fe7edbbdde244af992e6eca62869a6b758bb121d
7
- data.tar.gz: a006cae98bdb3574fef38016903548e3ed701fff069ea6cfe6abf0b514ddfd9398aa063804371c9ab7af6b8ebe463d9c8be06039eba88cf5eca1680add46ff83
6
+ metadata.gz: c34aa758d14625e472abaacd4172219f8dac681fc1f872a0f415b11a6fa6fe2cd75f70ef26c724785598e1b3a7fa12bac4d29a5f12160c546393d14020fa741f
7
+ data.tar.gz: 876d1e5bd078eb0dde3ecff94969a85365223d5e1fccddf9978ce8780d1c7724d8e9d24c65676ef80350712c0c10e91970f264979892b81689f7e36ea1855aad
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Dice
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
@@ -105,12 +105,12 @@ module OmniAuth
105
105
 
106
106
  def auth_hash
107
107
  log :debug, '.auth_hash'
108
- {
108
+ Hashie::Mash.new( {
109
109
  'provider' => name,
110
110
  'uid' => uid,
111
111
  'info' => info,
112
112
  'extra' => extra
113
- }
113
+ } )
114
114
  end
115
115
 
116
116
  # Set the user's uid field for the auth_hash
@@ -178,6 +178,14 @@ describe OmniAuth::Strategies::Dice, type: :strategy do
178
178
  raw_info = last_request.env['rack.session']['omniauth.auth']['extra']['raw_info']
179
179
  expect(raw_info).to eq(valid_user_xml)
180
180
  end
181
+
182
+ it 'should allow accessing auth_hash values via methods' do
183
+ header 'Ssl-Client-Cert', user_cert
184
+ get '/auth/dice'
185
+ follow_redirect!
186
+ expect(last_request.env['rack.session']['omniauth.auth']).to be_kind_of(Hash)
187
+ expect(last_request.env['rack.session']['omniauth.auth'].provider).to eq('dice')
188
+ end
181
189
  end
182
190
 
183
191
  context 'fail' do
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-dice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Haddox
@@ -30,7 +30,7 @@ cert_chain:
30
30
  42qdwEXvvkODZAD6KAIXPdmbMfBgPbcd+B/4eUA0PyKo+4dgL1NuqX4MPWToevIZ
31
31
  O8EKLF2X7NmC6FY1bOsSj/J8r1SOkx0rxgF+geRvY1P+hfNjDfxTsjU=
32
32
  -----END CERTIFICATE-----
33
- date: 2015-02-10 00:00:00.000000000 Z
33
+ date: 2015-02-11 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: awesome_print
@@ -407,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
407
407
  version: '0'
408
408
  requirements: []
409
409
  rubyforge_project:
410
- rubygems_version: 2.4.4
410
+ rubygems_version: 2.2.2
411
411
  signing_key:
412
412
  specification_version: 4
413
413
  summary: DN Interoperable Conversion Expert Strategy
metadata.gz.sig CHANGED
Binary file