omniauth-free_agent 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/free_agent/version.rb +1 -1
- data/lib/omniauth/strategies/free_agent.rb +4 -2
- 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: 3c879db6832b5d305f8b98fc1cceca219e5f1cfa2578fffe239cfad1787b6f77
|
4
|
+
data.tar.gz: 193b1e0bddc547e6b3843bc1444334c14fa098f5f4eb110546711bfa5a22bdfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2ecdb8a0b9b94b155aee617190e50370345494cc5612973eb617eb74fa106728c7e283283c9e70981407898efd5fa7822e17379bb8172b76dc2f856c502b75
|
7
|
+
data.tar.gz: 75c1857822dda93a9658e0a9b05d34aa51aabe86a2344572289bb4478b302169f79905d0d73a34139976ccaac5a9afa4b605a07d34755b1532acccb003417d22
|
@@ -14,7 +14,7 @@ module OmniAuth
|
|
14
14
|
}
|
15
15
|
|
16
16
|
uid do
|
17
|
-
user_info["url"]
|
17
|
+
user_info["url"].split("/").last.to_i
|
18
18
|
end
|
19
19
|
|
20
20
|
info do
|
@@ -33,11 +33,13 @@ module OmniAuth
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def user_info
|
36
|
-
@user_info ||= access_token.get("/v2/users/me").parsed
|
36
|
+
@user_info ||= access_token.get("/v2/users/me").parsed
|
37
|
+
@user_info["user"] || {}
|
37
38
|
end
|
38
39
|
|
39
40
|
def company_info
|
40
41
|
@company_info ||= access_token.get("/v2/company").parsed
|
42
|
+
@company_info["company"] || {}
|
41
43
|
end
|
42
44
|
|
43
45
|
def callback_url
|