omniauth-tiktok-oauth2 0.1.5 → 0.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c6bd88bbacc4d220836b0ded8a09dcddd4fc26a4fb03d38361add2f566076b2
|
4
|
+
data.tar.gz: 621e54dcf518f174a95bd2b2abd9509287abb2cd330d17e0958815797f688309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9349cb8c42c54dfda87cb576f99baeb11753e333af8c1e474547e96b192d624450c86b91fae8c1dd39907d5a996732fa3c50df4cd5bcfba0639917936a54a536
|
7
|
+
data.tar.gz: cb5bf601f557361e4d28c10f27fc103f97fad95b234ae199c193e5dfd9c69c72ab0ede8fc18f9d6179fca5b8bccd8adb291f55fdf01bde098c2826f65fe791c9
|
@@ -2,18 +2,18 @@ require 'oauth2'
|
|
2
2
|
require 'omniauth/strategies/oauth2'
|
3
3
|
|
4
4
|
OAuth2::Response.register_parser(:tiktok, []) do |body|
|
5
|
-
JSON.parse(body)
|
5
|
+
JSON.parse(body).fetch('data') rescue body
|
6
6
|
end
|
7
7
|
|
8
8
|
module OmniAuth
|
9
9
|
module Strategies
|
10
10
|
class TiktokOauth2 < OmniAuth::Strategies::OAuth2
|
11
|
-
USER_INFO_URL = 'https://
|
11
|
+
USER_INFO_URL = 'https://business-api.tiktok.com/open_api/v1.2/user/info/'
|
12
12
|
option :name, "tiktok_oauth2"
|
13
13
|
option :client_options,
|
14
|
-
site: 'https://
|
14
|
+
site: 'https://business-api.tiktok.com',
|
15
15
|
authorize_url: 'https://ads.tiktok.com/marketing_api/auth',
|
16
|
-
token_url: 'https://
|
16
|
+
token_url: 'https://business-api.tiktok.com/open_api/v1.2/oauth2/access_token'
|
17
17
|
|
18
18
|
option :pkce, true
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-tiktok-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristoffer Ek
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: '1.1'
|
41
41
|
description: A TikTok Marketing API OAuth2 strategy for OmniAuth. This allows you
|
42
42
|
to login with TikTok in your ruby app.
|
43
|
-
email:
|
43
|
+
email:
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
@@ -57,7 +57,7 @@ homepage: https://github.com/kristofferek/omniauth-tiktok-oauth2
|
|
57
57
|
licenses:
|
58
58
|
- MIT
|
59
59
|
metadata: {}
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,9 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubyforge_project:
|
75
|
+
rubyforge_project:
|
76
76
|
rubygems_version: 2.7.6.2
|
77
|
-
signing_key:
|
77
|
+
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: A TikTok Marketing API OAuth2 strategy for OmniAuth
|
80
80
|
test_files: []
|