clerk-sdk-ruby 3.0.0 → 3.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/CHANGELOG.md +6 -0
- data/Gemfile.lock +11 -9
- data/lib/clerk/rack_middleware_v2.rb +9 -2
- data/lib/clerk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c00fcf8ae50b346d735c9faf512ebfd48a47244988903f7dc8aaf142d5a5a67
|
|
4
|
+
data.tar.gz: c3a313b88d7bc9f82bb9c7e9c32bb62a44d6d589b66738749e0090b56849344d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02a881ea0849691692a877da064f3c3d94b460dbb2af9a85c8c858cf1c15d41efdf35f4556c87ec7b483712b682808ebb960536121007f51b49aa71e4f059f36
|
|
7
|
+
data.tar.gz: c3e1f52085ee821fc566a9137344e944fd1845f4debda895852e85bb040b058f7c1080d005d5bc585835121f934d2a93b18da3d81510c10f1151fb299e6defaa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## unreleased
|
|
2
2
|
|
|
3
|
+
## 3.1.0 - 2024-03-19
|
|
4
|
+
|
|
5
|
+
- fix: Incompatible __client_uat & __session should show interstitial (#51) [https://github.com/clerk/clerk-sdk-ruby/pull/51]
|
|
6
|
+
- fix: Incorrect check that lead to infinite redirect loop introduced by (#51) [https://github.com/clerk/clerk-sdk-ruby/pull/51]
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
## 3.0.0 - 2024-01-09
|
|
4
10
|
|
|
5
11
|
Note: this is identical to 2.12.0, which was yanked because it contained a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
clerk-sdk-ruby (
|
|
4
|
+
clerk-sdk-ruby (3.1.0)
|
|
5
5
|
concurrent-ruby (~> 1.1)
|
|
6
6
|
faraday (>= 1.4.1, < 3.0)
|
|
7
7
|
jwt (~> 2.5)
|
|
@@ -9,19 +9,21 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
base64 (0.
|
|
12
|
+
base64 (0.2.0)
|
|
13
13
|
byebug (11.1.3)
|
|
14
|
-
concurrent-ruby (1.2.
|
|
15
|
-
faraday (2.
|
|
14
|
+
concurrent-ruby (1.2.3)
|
|
15
|
+
faraday (2.9.0)
|
|
16
|
+
faraday-net_http (>= 2.0, < 3.2)
|
|
17
|
+
faraday-net_http (3.1.0)
|
|
18
|
+
net-http
|
|
19
|
+
jwt (2.8.1)
|
|
16
20
|
base64
|
|
17
|
-
faraday-net_http (>= 2.0, < 3.1)
|
|
18
|
-
ruby2_keywords (>= 0.0.4)
|
|
19
|
-
faraday-net_http (3.0.2)
|
|
20
|
-
jwt (2.7.1)
|
|
21
21
|
minitest (5.20.0)
|
|
22
|
+
net-http (0.4.1)
|
|
23
|
+
uri
|
|
22
24
|
rake (13.1.0)
|
|
23
|
-
ruby2_keywords (0.0.5)
|
|
24
25
|
timecop (0.9.8)
|
|
26
|
+
uri (0.13.0)
|
|
25
27
|
|
|
26
28
|
PLATFORMS
|
|
27
29
|
arm64-darwin-22
|
|
@@ -166,14 +166,21 @@ module Clerk
|
|
|
166
166
|
# COOKIE AUTHENTICATION #
|
|
167
167
|
# #
|
|
168
168
|
##########################################################################
|
|
169
|
+
|
|
169
170
|
if development_or_staging? && (req.referrer.nil? || cross_origin_request?(req))
|
|
170
171
|
return unknown(interstitial: true)
|
|
171
172
|
end
|
|
172
173
|
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
# Show interstitial when there is no client_uat and cookie token
|
|
175
|
+
if client_uat.to_s.empty? && cookie_token.to_s.empty?
|
|
176
|
+
return unknown(interstitial: true)
|
|
175
177
|
end
|
|
176
178
|
|
|
179
|
+
# Show interstitial when there is client_uat is incompatible with cookie token
|
|
180
|
+
has_cookie_token_without_client = (client_uat == "0" || client_uat.to_s.empty?) && cookie_token
|
|
181
|
+
has_client_without_cookie_token = (client_uat.to_s != "0" && client_uat.to_s != "") && cookie_token.to_s.empty?
|
|
182
|
+
return unknown(interstitial: true) if has_cookie_token_without_client || has_client_without_cookie_token
|
|
183
|
+
|
|
177
184
|
if client_uat == "0"
|
|
178
185
|
return signed_out(env)
|
|
179
186
|
end
|
data/lib/clerk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clerk-sdk-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Clerk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
152
|
- !ruby/object:Gem::Version
|
|
153
153
|
version: '0'
|
|
154
154
|
requirements: []
|
|
155
|
-
rubygems_version: 3.3
|
|
155
|
+
rubygems_version: 3.2.3
|
|
156
156
|
signing_key:
|
|
157
157
|
specification_version: 4
|
|
158
158
|
summary: Clerk SDK for Ruby.
|