omniauth-tiktok-loginkit 1.1.0 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e6f9c1ebe11010118a7f9317c1d49769096f973ae5c52998b7ddafa108a62d0
4
- data.tar.gz: 8d1306c208fc6d828e4ffbcb1ea1c4e2f26d02b209d8fdba896ced005b6ace9a
3
+ metadata.gz: 5faf04e9c367568132c0bec1556049fed6c880e3835d3c11be6c3be9cfcd60f2
4
+ data.tar.gz: 033cec6a5871db23ce159baef696073ab5ad432df3db1546a02a98096f4a5c28
5
5
  SHA512:
6
- metadata.gz: 8f15ba1f72abc1be400f176ac8212c6322efe5ef0779893c6b87e085757330e9666485da968b178d4697726b2e1082623132a17748b073462b08018c0945aaea
7
- data.tar.gz: 0b4e56f65fa9be25e6ae423b3bc5f0ab7df8c94d272ba5099332a108431fd633190f2b173ca96ae80f5106e93c7d6cbb2da2338adb87f6c35eb17b388c864df8
6
+ metadata.gz: 20e2145990aef6b8ae406fc80e8c7d074e2a1ff397c302a0e4f79bf5a8028687cd4edf4ba647a82ae6e29951ff24c6bcfb0b28dd9f4cb4bca49a291d80664cf7
7
+ data.tar.gz: ad559681e8b48b5a2a86490666ed16c0bd7cf7f402762e451d967d572539f0bb68cbbb58694293ed7cf0eb96c6935c93b7b4bfc5cd82373da84252a749a8df0a
data/.rubocop.yml CHANGED
@@ -10,4 +10,8 @@ Style/StringLiteralsInInterpolation:
10
10
 
11
11
  Naming/FileName:
12
12
  Exclude:
13
- - 'lib/omniauth-tiktok-loginkit.rb'
13
+ - 'lib/omniauth-tiktok-loginkit.rb'
14
+
15
+ Metrics/BlockLength:
16
+ Exclude:
17
+ - 'spec/**/*_spec.rb' # good test write long
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.2.0] - 2025-12-23
4
+
5
+ - Allow overriding `redirect_uri` entirely by @JustinGranof
6
+
7
+ ## [1.1.0] - 2025-02-18
8
+
9
+ - add more fields in `user.info.stats` by @TakiKazuya
10
+
3
11
  ## [0.1.0] - 2024-04-13
4
12
 
5
13
  - Initial release
data/README.md CHANGED
@@ -46,9 +46,10 @@ config.omniauth(
46
46
 
47
47
  ## Options
48
48
 
49
- * `name`: change endpoint to /auth/tiktok_another, /auth/tiktok_another/callback. default: `"tiktok_login"`
49
+ * `name`: change endpoint to /auth/tiktok_another, /auth/tiktok_another/callback. default: `"tiktok-loginkit"`
50
50
  * `skip_info`: skip User Info API call to retrieve `info` hash. default: `false`
51
51
  * `scope`: oauth scopes, seperated by comma. default: `"user.info.basic"`
52
+ * `redirect_uri`: change the redirect_uri used after the user authenticates with TikTok (overrides the `name` option)
52
53
 
53
54
 
54
55
  ## Usage
@@ -63,7 +63,7 @@ module OmniAuth
63
63
  end
64
64
 
65
65
  def callback_url
66
- full_host + callback_path
66
+ options[:redirect_uri] || (full_host + callback_path)
67
67
  end
68
68
 
69
69
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniauthTiktokLoginkit
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tiktok-loginkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Yin
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-17 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: oauth2
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.6.2
91
+ rubygems_version: 3.6.9
92
92
  specification_version: 4
93
93
  summary: OmniAuth Strategy for TikTok LoginKit
94
94
  test_files: []