omniauth-yoti 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -2
- data/README.md +20 -19
- data/lib/omniauth/strategies/yoti.rb +9 -1
- data/lib/omniauth/yoti/version.rb +1 -1
- data/omniauth-yoti.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0764709e7bb83835d612ac5279ca733cdf6fbcec'
|
4
|
+
data.tar.gz: 692ce05e5faae22f3370df7901de1934d6673d61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 044f4078c68d7e328904718253e7b24097d83c15ee54cbf17b94cef127eb9f8f43543a85fd8bd480cdd6c090d647abe35a5be224092da9447fd303832d760efa
|
7
|
+
data.tar.gz: cdd2f2dc69c8b7ed12d46206c2d8e492cc2219832301766cdd06466cd0be40f5d6c1c144743e43595e6da9829515b9fbb627b5fca8c0c939a7812b5cb0cd9a37
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## 1.1.3 - 2017-11-01
|
8
|
+
|
9
|
+
### Added
|
10
|
+
- `base64_selfie_uri` value
|
11
|
+
|
7
12
|
## 1.1.2 - 2017-10-18
|
8
13
|
|
9
14
|
## 1.1.1 - 2017-09-13
|
@@ -16,7 +21,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
16
21
|
- `simplecov` `~> 0.15`
|
17
22
|
- `webmock` `~> 3.0`
|
18
23
|
|
19
|
-
|
20
24
|
## 1.1.0 - 2017-04-11
|
21
25
|
Updates dependencies to the latest versions and aligns extra fields naming conventions with the Yoti attributes.
|
22
26
|
|
@@ -36,7 +40,6 @@ Updates dependencies to the latest versions and aligns extra fields naming conve
|
|
36
40
|
- `simplecov` `~> 0.14`
|
37
41
|
- `webmock` `~> 2.3`
|
38
42
|
|
39
|
-
|
40
43
|
## 1.0.1 - 2016-11-28
|
41
44
|
### Added
|
42
45
|
- Yoti proprietary license
|
data/README.md
CHANGED
@@ -36,11 +36,11 @@ Yoti client initialisation looks like this:
|
|
36
36
|
require 'omniauth-yoti'
|
37
37
|
|
38
38
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
39
|
-
provider :yoti, client_options:
|
39
|
+
provider :yoti, client_options: {
|
40
40
|
application_id: ENV['YOTI_APPLICATION_ID'],
|
41
41
|
client_sdk_id: ENV['YOTI_CLIENT_SDK_ID'],
|
42
42
|
key_file_path: ENV['YOTI_KEY_FILE_PATH']
|
43
|
-
|
43
|
+
}
|
44
44
|
end
|
45
45
|
```
|
46
46
|
|
@@ -60,23 +60,24 @@ A call to `/auth/yoti/callback` will open the Yoti authentication page, and afte
|
|
60
60
|
|
61
61
|
```ruby
|
62
62
|
{
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
63
|
+
"provider" => "yoti",
|
64
|
+
"uid" => "mHvpV4...",
|
65
|
+
"info" => {
|
66
|
+
"name" => "mHvpV4Mm+yMb...",
|
67
|
+
"base64_selfie_uri" => "data:image/jpeg;base64,/9j/2wCEAAMCAg..."
|
68
|
+
},
|
69
|
+
"credentials" => {},
|
70
|
+
"extra" => {
|
71
|
+
"selfie" => "jpeg image file",
|
72
|
+
"given_names" => "Given Name",
|
73
|
+
"family_name" => "Family Name",
|
74
|
+
"phone_number" => "07474747474",
|
75
|
+
"email_address" => "email@example.com",
|
76
|
+
"date_of_birth" => nil,
|
77
|
+
"postal_address" => nil,
|
78
|
+
"gender" => 'MALE',
|
79
|
+
"nationality" => nil
|
80
|
+
}
|
80
81
|
}
|
81
82
|
|
82
83
|
```
|
@@ -13,7 +13,10 @@ module OmniAuth
|
|
13
13
|
end
|
14
14
|
|
15
15
|
uid { yoti_user_id }
|
16
|
-
info {
|
16
|
+
info {{
|
17
|
+
name: yoti_user_id,
|
18
|
+
base64_selfie_uri: base64_selfie_uri
|
19
|
+
}}
|
17
20
|
|
18
21
|
def extra
|
19
22
|
@raw_info ||= {
|
@@ -46,11 +49,16 @@ module OmniAuth
|
|
46
49
|
yoti_activity_details.user_id
|
47
50
|
end
|
48
51
|
|
52
|
+
def base64_selfie_uri
|
53
|
+
yoti_activity_details.base64_selfie_uri
|
54
|
+
end
|
55
|
+
|
49
56
|
def configure_yoti_client!
|
50
57
|
::Yoti.configure do |config|
|
51
58
|
config.client_sdk_id = options.client_options[:client_sdk_id]
|
52
59
|
config.key_file_path = options.client_options[:key_file_path]
|
53
60
|
config.key = options.client_options[:key]
|
61
|
+
config.sdk_identifier = 'OmniAuth'
|
54
62
|
end
|
55
63
|
end
|
56
64
|
|
data/omniauth-yoti.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.required_ruby_version = '>= 2.1.9'
|
23
23
|
|
24
24
|
spec.add_dependency 'omniauth', '~> 1.6'
|
25
|
-
spec.add_dependency 'yoti', '~> 1.0'
|
25
|
+
spec.add_dependency 'yoti', '~> 1.1.0'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler', '~> 1.13'
|
28
28
|
spec.add_development_dependency 'rake', '~> 12.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-yoti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Zaremba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|