clerk-sdk-ruby 3.1.0.rc.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/lib/clerk/rack_middleware_v2.rb +5 -5
- data/lib/clerk/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5b0d6f82c56ddfe8791511ecf1312aff901c8070a3b225fe9210a991002ebd
|
4
|
+
data.tar.gz: 9955424ce840e42db36b246642b69983d89d3ab8c35667027d48f225a08fe9ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ddfdc48fa90ecb3134e881cc9a277e88af66be69239a020f9bc4bea287902186faa7ff721d322e68e96603563b96d6ac60a72b4a481c0e19be1e006516126c3
|
7
|
+
data.tar.gz: 8c726270e98329aaed14a8e0a4ca54701c4cea9eccff14ecea888b639f026f9c40469cc5905f81dbe678305e295ed9995e0e198b7d408c79d938eb8d2253e165
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## unreleased
|
2
2
|
|
3
|
+
## 3.2.0 - 2024-04-08
|
4
|
+
|
5
|
+
- fix: Infinite redirect loop when client_uat=0 and __session exists (#55) [https://github.com/clerk/clerk-sdk-ruby/pull/55]
|
6
|
+
|
7
|
+
## 3.1.0 - 2024-03-19
|
8
|
+
|
9
|
+
- fix: Incompatible __client_uat & __session should show interstitial (#51) [https://github.com/clerk/clerk-sdk-ruby/pull/51]
|
10
|
+
- fix: Incorrect check that lead to infinite redirect loop introduced by (#51) [https://github.com/clerk/clerk-sdk-ruby/pull/51]
|
11
|
+
|
3
12
|
## 3.0.0 - 2024-01-09
|
4
13
|
|
5
14
|
Note: this is identical to 2.12.0, which was yanked because it contained a
|
data/Gemfile.lock
CHANGED
@@ -176,15 +176,15 @@ module Clerk
|
|
176
176
|
return unknown(interstitial: true)
|
177
177
|
end
|
178
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
|
-
|
184
179
|
if client_uat == "0"
|
185
180
|
return signed_out(env)
|
186
181
|
end
|
187
182
|
|
183
|
+
# Show interstitial when there is client_uat is incompatible with cookie token
|
184
|
+
has_cookie_token_without_client = client_uat.to_s.empty? && cookie_token
|
185
|
+
has_client_without_cookie_token = client_uat.to_s != "" && cookie_token.to_s.empty?
|
186
|
+
return unknown(interstitial: true) if has_cookie_token_without_client || has_client_without_cookie_token
|
187
|
+
|
188
188
|
begin
|
189
189
|
token = verify_token(cookie_token)
|
190
190
|
return signed_out(env) if !token
|
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.2.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-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -148,9 +148,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: 2.4.0
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - "
|
151
|
+
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
153
|
+
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubygems_version: 3.2.3
|
156
156
|
signing_key:
|