omniauth-etsy-oauth2 0.1.1 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44855187feda905fef13e005bd37d6660c82cf3c99dbd2dfe8f90a41ec123049
4
- data.tar.gz: 811eaada19615860a0fa69469b72496cc9b7a419e75ae337c14c3ea6231ae713
3
+ metadata.gz: c2450bac76bb7b6ed47c683bc61fc1bcc0e9dc5e8aa3cee1765b2c701d345060
4
+ data.tar.gz: 1c4a08eed44ddb8548fba5acf1713b5a7e1aca69b3c57d80ea04cce6a55eed55
5
5
  SHA512:
6
- metadata.gz: 7c89adac42aace0709525935519ed01f030cfcc364e3e87f74e3760a5610d4bc3eb9fbb226c2b4cae32706c327af6d4a518efac642c061e595e1cc8af294a5e0
7
- data.tar.gz: 8ee78a38aeeb622ae9dc73544867947e0ea18f405cd79c4d60bb87b5db84880b138a6423067328af242bd26ee7c49b742f18e9cbb4c07e2abd8722bb5c3b6ebb
6
+ metadata.gz: 16f9898f1106cc08cd527f3d1b024e25f8582edfc9ef1a78d4fdddcf4c1d55b0d2e3aae3b560260a47df143428a1a3fc5c457d0b02ddc45e401b066f533b0c19
7
+ data.tar.gz: 242347f77edadf4a71aef19e47244f1204ca39433083b60ae2cca5583fefe57984745557f79091af8db05fd9b6a196d9ae89e18ea15201a953b7fd3d52208cbb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.2.0] - 2021-08-04
2
+
3
+ - Add `user_id` attribute to `request.env['omniauth.auth']['credentials']`
4
+
1
5
  ## [0.1.1] - 2021-08-04
2
6
 
3
7
  - Add `expires_in` attribute to `request.env['omniauth.auth']['credentials']`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-etsy-oauth2 (0.1.1)
4
+ omniauth-etsy-oauth2 (0.2.0)
5
5
  omniauth (~> 1.9.1)
6
6
  omniauth-oauth2 (~> 1.4)
7
7
 
data/README.md CHANGED
@@ -55,7 +55,8 @@ Here's an example *Authentication Hash* available in `request.env['omniauth.auth
55
55
  refresh_token: 'refresh_token',
56
56
  expires_at: 1627977818,
57
57
  expires: true,
58
- expires_in: 3600
58
+ expires_in: 3600,
59
+ user_id: 'user_id'
59
60
  }
60
61
  }
61
62
  ```
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Etsy
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -38,7 +38,8 @@ module OmniAuth
38
38
 
39
39
  def user_credentials
40
40
  self.class.superclass.credentials_stack(self).first.merge(
41
- 'expires_in' => access_token.expires_in.to_i
41
+ 'expires_in' => access_token.expires_in.to_i,
42
+ 'user_id' => access_token.token.split('.').first
42
43
  )
43
44
  end
44
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-etsy-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ulan Djamanbalaev