omniauth-tiktok-loginkit 0.1.1 → 0.1.2
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/lib/omniauth-tiktok-loginkit/version.rb +1 -1
- metadata +25 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec9efb4e7e1fd15d2a281eff5dd6fb51f7ab1beee097258f045d1afbfa26e940
|
|
4
|
+
data.tar.gz: 440617b46ff9e4f76b989bea6749c664bd8103bfe46a3e4f5c9ef3e10f630a48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 968214817a2f1de8b5a4a90983711e8b44098fc0c7289c117da317f15acec3d8a720e5eb7d1154592c71e946bf3f045e83a23e65d6ee9065d71d956bace3479e
|
|
7
|
+
data.tar.gz: eecbd23794bff3a8038e9f13046183b2f1d3c5a170d5234d8661c9e7840b11f9ff7bb7c0a8ee0016322ec210da74b8b8a949ac4b633d258aede2c8abe05f1406
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-tiktok-loginkit
|
|
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
|
- Michael Yin
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2024-04-13 00:00:00.000000000 Z
|
|
@@ -52,7 +52,26 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1.0'
|
|
55
|
-
description:
|
|
55
|
+
description: "# omniauth-tiktok-loginkit\n\nOmniAuth Strategy for TikTok [LoginKit](https://developers.tiktok.com/doc/login-kit-overview/)\n\nUsing
|
|
56
|
+
TikTok Oauth API v2.\n\n## Config\n\nConfigure with CLIENT_KEY and CLIENT_SECRET
|
|
57
|
+
from TikTok Developers Portal (https://developers.tiktok.com/apps/). Note CLIENT_KEY
|
|
58
|
+
is the value of \"Client Key\" field, not \"App ID\" on the portal.\n\nTikTok requires
|
|
59
|
+
apps to be approved by review before it can access any APIs, including the Oauth
|
|
60
|
+
APIs. Also any configuration change to the app will cause it to be back in \"Staging\"
|
|
61
|
+
status. So please configure all neccessary \"Redirect URI\" correctly before submitting
|
|
62
|
+
a review.\n\nTikTok also rejects any \"Test App\", so it's better to configure test
|
|
63
|
+
/ dev environment redirect URI on the production app.\n\n```\nRails.application.config.middleware.use
|
|
64
|
+
OmniAuth::Builder do\n provider(\n :tiktok_loginkit, \n CLIENT_KEY,
|
|
65
|
+
\n CLIENT_SECRET,\n *options\n )\nend\n```\n\n...Or with devise
|
|
66
|
+
(https://github.com/heartcombo/devise#omniauth)\n\n```\n# config/initializers/devise.rb\nconfig.omniauth(\n
|
|
67
|
+
\ :tiktok_loginkit, \n CLIENT_KEY, \n CLIENT_SECRET, \n ...options\n)\n\n```\n\n##
|
|
68
|
+
Options\n\n* `name`: change endpoint to /auth/tiktok_another, /auth/tiktok_another/callback.
|
|
69
|
+
default: `\"tiktok_login\"`\n* `skip_info`: skip User Info API call to retrieve
|
|
70
|
+
`info` hash. default: `false`\n* `scope`: oauth scopes, seperated by comma. default:
|
|
71
|
+
`\"user.info.basic\"`\n\n\n## Usage\n\nExample of `request.env[\"omniauth.auth\"]`
|
|
72
|
+
can be found in the specs:\n\n* [with default scope: user.info.basic](https://github.com/layerssss/omniauth-tiktok-loginkit/blob/main/spec/omniauth/strategies/tiktok_loginkit_spec.rb#L108)\n*
|
|
73
|
+
[more detailed user info with scopes: user.info.basic,user.info.profile](https://github.com/layerssss/omniauth-tiktok-loginkit/blob/main/spec/omniauth/strategies/tiktok_loginkit_spec.rb#L263)\n\n##
|
|
74
|
+
License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT)."
|
|
56
75
|
email:
|
|
57
76
|
- layerssss@gmail.com
|
|
58
77
|
executables: []
|
|
@@ -76,7 +95,7 @@ metadata:
|
|
|
76
95
|
homepage_uri: https://github.com/layerssss/omniauth-tiktok-loginkit
|
|
77
96
|
source_code_uri: https://github.com/layerssss/omniauth-tiktok-loginkit
|
|
78
97
|
changelog_uri: https://github.com/layerssss/omniauth-tiktok-loginkit/blob/main/CHANGELOG.md
|
|
79
|
-
post_install_message:
|
|
98
|
+
post_install_message:
|
|
80
99
|
rdoc_options: []
|
|
81
100
|
require_paths:
|
|
82
101
|
- lib
|
|
@@ -91,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
91
110
|
- !ruby/object:Gem::Version
|
|
92
111
|
version: '0'
|
|
93
112
|
requirements: []
|
|
94
|
-
rubygems_version: 3.
|
|
95
|
-
signing_key:
|
|
113
|
+
rubygems_version: 3.1.6
|
|
114
|
+
signing_key:
|
|
96
115
|
specification_version: 4
|
|
97
116
|
summary: OmniAuth Strategy for TikTok LoginKit
|
|
98
117
|
test_files: []
|