omniauth-wix 0.1.2 → 0.1.3

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: b2a0e13a4c7c1062a6f26fae22fb1e9ae20ae53c004c3d6011613006b9498233
4
- data.tar.gz: b788ea138d26ea4aec8aeceb35292462d7669df91ddedc7fadcebfc724f063eb
3
+ metadata.gz: 11f376920758d00d6c9a5209c1631d6a1ddaac39f2a70405bf01127dca7c92b8
4
+ data.tar.gz: 73f3c6f905619bdd171ea341399c3835cea8c21f179dbd42f5ac44387f363390
5
5
  SHA512:
6
- metadata.gz: 015b850d7422ed7a26dce0cb1e001b7ccd1dfbd5f0117e9670a4777146868a88f0b67fe176b445c09ed963c3bb3d8a764bec9dbe47010c0b2f6d2dc025e0ef14
7
- data.tar.gz: 4cc6335b1a5256e96e173ebec408b5d58fb00038af82060f9d5c6634775365cfd588e08213d758f2c49c473c82bb32dea6128d09b3b04196c54de37208b6ce12
6
+ metadata.gz: f7df5c36cb4bcb74ab60cfc180b18cc523f675d19c7be18df2dca328055a981235f43f2aaf953c6bde01c1625dc891e6b2ec194a4d6af62b4075ece9721f4a6b
7
+ data.tar.gz: 958f89aa2666d1683ea7f537aca16fe273f81b70a2efa025747cc969081601f190de7d71a451c47d7f3c86436bae5ad07cf49da9ba32a638c7971ab3ca9c843c
@@ -13,6 +13,14 @@ module OmniAuth
13
13
  option :provider_ignores_state, true
14
14
 
15
15
  uid { request.params["instanceId"] }
16
+
17
+ credentials do
18
+ hash = {"token" => access_token.token}
19
+ hash["refresh_token"] = access_token.refresh_token if access_token.refresh_token
20
+ hash["expires_at"] = access_token.expires_at if access_token.expires?
21
+ hash["expires"] = access_token.expires?
22
+ hash
23
+ end
16
24
 
17
25
  def client
18
26
  ::OAuth2::Client.new(options.client_id, options.client_secret, deep_symbolize(options.client_options)) do |b|
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Wix
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-wix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serene Yew