omniauth-cz-shop-platforms 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: bf68b9e2a7e724dd5b53df846c87d9e154cf2bdf7f7cdb64105e9b20ea544043
4
- data.tar.gz: 14e9a2512249d2cd21ed863893fde6242934fc7389bb5b0b6cba29f3eecee383
3
+ metadata.gz: 266c4af03e88ee7e38201f9d5b0cf6f980fc7fb62430ed41824b9a3adf1a9bef
4
+ data.tar.gz: 3a8293c815420e4a4b14d4c1ff0d59257932c0c9a0a69dfcad04fc8f637434e4
5
5
  SHA512:
6
- metadata.gz: 914b67cd782bd54a757bdb94ad3949d5a64e565f37f213d85a9cba49d601848a522b945b4e88c1d8fe10c98e260bea2e45d82c75feeb1e559c35a9e5469f38f8
7
- data.tar.gz: 7ab29862c4f1c65aa370e76a8cd78bb101581e25a8d91310fb1572201621528cc9734fbabc34e134556b9867f2f0f6cc9baa5b9c4eea8f176233b9f078eb30d3
6
+ metadata.gz: a6275679aeb2dabd4d03a5fa9fdce9695b6ed91b7f3f6d461b8241bcfc115eb3230fc71924c0f32bb5515274379b6a8c5639603a3c96cd080647e7aef7e0b7c6
7
+ data.tar.gz: 9ccde7f9f93986a82ba4ae8672c592050837cff04d5a1e376b1a6b62501c47eccdb804eaee828f6fd83d484b7bc48ac1f8c229f8be320486e9bfcd8a038d09e6
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module CzShopPlatforms
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
@@ -42,12 +42,13 @@ module OmniAuth
42
42
  ::OAuth2::Client.new(options.client_id, options.client_secret, client_options)
43
43
  end
44
44
 
45
- uid { raw_info['data']['user']['email'] }
45
+ uid { raw_info['user']['email'] }
46
46
 
47
47
  info do
48
48
  {
49
- email: raw_info['data']['user']['email'],
50
- store: raw_info['data']['user']['project']
49
+ email: raw_info['user']['email'],
50
+ name: raw_info['user']['name'],
51
+ store: raw_info['project']
51
52
  }
52
53
  end
53
54
 
@@ -60,7 +61,7 @@ module OmniAuth
60
61
  end
61
62
 
62
63
  def raw_info
63
- @raw_info ||= access_token.get(USER_INFO_PATH).parsed
64
+ @raw_info ||= access_token.get(USER_INFO_PATH).parsed['data']
64
65
  end
65
66
  end
66
67
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-cz-shop-platforms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sterba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-11 00:00:00.000000000 Z
11
+ date: 2022-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2