omniauth-threads 0.1.1 → 0.1.2
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/threads.rb +8 -2
- data/lib/omniauth/threads/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 462d0af2640373c6752ff05c95b78b8b4e8063548ed10abbd23fd4dc250bcbeb
|
4
|
+
data.tar.gz: 7165333b2c43ea1639c452c0232c71a1651af2ab26adb1802c6b4cd4b37522bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94a202f2c589888115e54141a40a79220008555f43f6dec52bd18ec60e56fba289f69f6cb156da322c690c29e7ac2fd7c81424a33d45f8f8864616ceb2e92254
|
7
|
+
data.tar.gz: f7788e471b0adb66d2f844b8c49f7d431e884c98b07b7e9c3e43a17e5e72c65b48f8c8ac187f4f682c78e271e31050824811894fd85b31183e63ea9219b83e19
|
@@ -28,7 +28,13 @@ module OmniAuth
|
|
28
28
|
uid { raw_info['id'] }
|
29
29
|
|
30
30
|
info do
|
31
|
-
{
|
31
|
+
{
|
32
|
+
:nickname => raw_info['username'],
|
33
|
+
:name => raw_info['username'],
|
34
|
+
:email => raw_info["email"],
|
35
|
+
:image => raw_info['threads_profile_picture_url'],
|
36
|
+
:description => raw_info['threads_biography'],
|
37
|
+
}
|
32
38
|
end
|
33
39
|
|
34
40
|
extra do
|
@@ -38,7 +44,7 @@ module OmniAuth
|
|
38
44
|
end
|
39
45
|
|
40
46
|
def raw_info
|
41
|
-
@raw_info ||= access_token.get('/me').parsed
|
47
|
+
@raw_info ||= access_token.get('/me?fields=id,username,threads_profile_picture_url,threads_biography').parsed
|
42
48
|
end
|
43
49
|
|
44
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-threads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Bornsztein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|