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 +4 -4
- data/lib/omniauth/strategies/wix.rb +8 -0
- data/lib/omniauth/wix/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11f376920758d00d6c9a5209c1631d6a1ddaac39f2a70405bf01127dca7c92b8
|
4
|
+
data.tar.gz: 73f3c6f905619bdd171ea341399c3835cea8c21f179dbd42f5ac44387f363390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
data/lib/omniauth/wix/version.rb
CHANGED