omniauth-tiktok-loginkit 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa9554063d9938b19a2bbc94b4b183e8d1aa3b89e3c21389de4038872e70fd98
4
- data.tar.gz: f15a2c760d8ebe63fc0b3641ccfd3d2e6a6c054e77282a8cf8443c980d91f982
3
+ metadata.gz: ec9efb4e7e1fd15d2a281eff5dd6fb51f7ab1beee097258f045d1afbfa26e940
4
+ data.tar.gz: 440617b46ff9e4f76b989bea6749c664bd8103bfe46a3e4f5c9ef3e10f630a48
5
5
  SHA512:
6
- metadata.gz: da5b86d1c386e213d7145dc4ab68c24a863eca3cff193af21b9777385c924e2d0d7bc28ee88b78961801e3fa0359b353fab40bc90442d24d89789b85cfe74b3b
7
- data.tar.gz: 63a4bb3af6036226b30a8f645bc12b4210f548e8bfa5329df8c2bc993f6e416bdce44967d30387c4c5f27289ffedc9055ad925e713b428f2ce032b213a3e583b
6
+ metadata.gz: 968214817a2f1de8b5a4a90983711e8b44098fc0c7289c117da317f15acec3d8a720e5eb7d1154592c71e946bf3f045e83a23e65d6ee9065d71d956bace3479e
7
+ data.tar.gz: eecbd23794bff3a8038e9f13046183b2f1d3c5a170d5234d8661c9e7840b11f9ff7bb7c0a8ee0016322ec210da74b8b8a949ac4b633d258aede2c8abe05f1406
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniauthTiktokLoginkit
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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.5.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: []