omniauth-idcard 0.0.2 → 0.0.3

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.
@@ -12,6 +12,7 @@ module OmniAuth
12
12
 
13
13
  info do
14
14
  {
15
+ 'uid' => uid,
15
16
  'user_info' => {
16
17
  'personal_code' => @user_data['serialNumber'],
17
18
  'first_name' => @user_data['GN'],
@@ -28,9 +29,10 @@ module OmniAuth
28
29
 
29
30
  @user_data = parse_client_certificate(@env['SSL_CLIENT_CERT'])
30
31
  @env['REQUEST_METHOD'] = 'GET'
32
+ @env['omniauth.auth'] = info
31
33
  @env['PATH_INFO'] = "#{OmniAuth.config.path_prefix}/#{name}/callback"
32
34
 
33
- debug "ID-Card request was authenticated successfully. User data: #{auth_hash.inspect}"
35
+ debug "ID-Card request was authenticated successfully. User data: #{info.inspect}"
34
36
 
35
37
  call_app!
36
38
  else
@@ -63,4 +65,4 @@ module OmniAuth
63
65
  end
64
66
  end
65
67
  end
66
- end
68
+ end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Idcard
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-idcard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth
16
- requirement: &70255943952680 !ruby/object:Gem::Requirement
16
+ requirement: &70249794656340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70255943952680
24
+ version_requirements: *70249794656340
25
25
  description: OmniAuth strategy for Estonian ID-Card
26
26
  email:
27
27
  - tarmo.talu@gmail.com