omniauth-tiktok-loginkit 1.0.0 → 1.1.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 +4 -4
- data/.ruby-version +1 -1
- data/README.md +8 -0
- data/lib/omniauth/strategies/tiktok_loginkit.rb +3 -0
- data/lib/omniauth-tiktok-loginkit/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e6f9c1ebe11010118a7f9317c1d49769096f973ae5c52998b7ddafa108a62d0
|
4
|
+
data.tar.gz: 8d1306c208fc6d828e4ffbcb1ea1c4e2f26d02b209d8fdba896ced005b6ace9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f15ba1f72abc1be400f176ac8212c6322efe5ef0779893c6b87e085757330e9666485da968b178d4697726b2e1082623132a17748b073462b08018c0945aaea
|
7
|
+
data.tar.gz: 0b4e56f65fa9be25e6ae423b3bc5f0ab7df8c94d272ba5099332a108431fd633190f2b173ca96ae80f5106e93c7d6cbb2da2338adb87f6c35eb17b388c864df8
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.4.2
|
data/README.md
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
# omniauth-tiktok-loginkit
|
2
2
|
|
3
|
+
[](https://github.com/layerssss/omniauth-tiktok-loginkit/actions/workflows/rspec.yml)
|
4
|
+
[](https://github.com/layerssss/omniauth-tiktok-loginkit/actions/workflows/rubocop.yml)
|
5
|
+
[](https://badge.fury.io/rb/omniauth-tiktok-loginkit)
|
6
|
+
|
3
7
|
OmniAuth Strategy for TikTok [LoginKit](https://developers.tiktok.com/doc/login-kit-overview/)
|
4
8
|
|
5
9
|
Using TikTok Oauth API v2.
|
6
10
|
|
7
11
|
## Config
|
8
12
|
|
13
|
+
```
|
14
|
+
gem "omniauth-tiktok-loginkit"
|
15
|
+
```
|
16
|
+
|
9
17
|
Configure with CLIENT_KEY and CLIENT_SECRET from TikTok Developers Portal (https://developers.tiktok.com/apps/). Note CLIENT_KEY is the value of "Client Key" field, not "App ID" on the portal.
|
10
18
|
|
11
19
|
TikTok requires apps to be approved by review before it can access any APIs, including the Oauth APIs. Also any configuration change to the app will cause it to be back in "Staging" status. So please configure all neccessary "Redirect URI" correctly before submitting a review.
|
@@ -77,6 +77,9 @@ module OmniAuth
|
|
77
77
|
if scopes.include?("user.info.profile")
|
78
78
|
fields.push("profile_web_link", "profile_deep_link", "bio_description", "is_verified", "username")
|
79
79
|
end
|
80
|
+
if scopes.include?("user.info.stats")
|
81
|
+
fields.push("follower_count", "following_count", "likes_count", "video_count")
|
82
|
+
end
|
80
83
|
response = access_token
|
81
84
|
.get(
|
82
85
|
USER_INFO_URL,
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-tiktok-loginkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Yin
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-17 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: oauth2
|
@@ -52,7 +51,6 @@ dependencies:
|
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '1.0'
|
55
|
-
description:
|
56
54
|
email:
|
57
55
|
- layerssss@gmail.com
|
58
56
|
executables: []
|
@@ -76,7 +74,6 @@ metadata:
|
|
76
74
|
homepage_uri: https://github.com/layerssss/omniauth-tiktok-loginkit
|
77
75
|
source_code_uri: https://github.com/layerssss/omniauth-tiktok-loginkit
|
78
76
|
changelog_uri: https://github.com/layerssss/omniauth-tiktok-loginkit/blob/main/CHANGELOG.md
|
79
|
-
post_install_message:
|
80
77
|
rdoc_options: []
|
81
78
|
require_paths:
|
82
79
|
- lib
|
@@ -91,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
88
|
- !ruby/object:Gem::Version
|
92
89
|
version: '0'
|
93
90
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
95
|
-
signing_key:
|
91
|
+
rubygems_version: 3.6.2
|
96
92
|
specification_version: 4
|
97
93
|
summary: OmniAuth Strategy for TikTok LoginKit
|
98
94
|
test_files: []
|