clerk-sdk-ruby 2.10.0.beta1 → 2.10.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 +12 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -7
- data/lib/clerk/authenticatable.rb +1 -1
- data/lib/clerk/rack_middleware_v2.rb +3 -3
- 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: 1e9e8d21b8fb8894e6d3ad8889974bbd1580c17408b8dfc72b41f2f65d8ca580
|
4
|
+
data.tar.gz: b4f2f528429bd9e0dd84b27414850dcafbe8b1f11dab09f2a86854f864a254e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9abe8cff4274e2c944f49dd3bf087773f23289271ae6b99d9d1190fb3e5d230269a32a78b9b7f8200cab1fde00b983078e17d83aae3dd2b8e315ed120e286489
|
7
|
+
data.tar.gz: 9dba4bffa1412f0d373ecbe82b5b1e04dc1059230c3b41f33a95c7c7de674bf5e8642c35dae3dfd99242e8afd85499077e833856e9221efcbc14aff654d792e9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## unreleased
|
2
2
|
|
3
|
+
## 2.10.0 - 2023-04-04
|
4
|
+
|
5
|
+
Identical to 2.10.0.beta2
|
6
|
+
|
7
|
+
## 2.10.0.beta2 - 2023-03-08
|
8
|
+
|
9
|
+
- fix: incorrect usage keyword parameter (fix for 2.10.0.beta1)
|
10
|
+
|
3
11
|
## 2.10.0.beta1 - 2023-03-08
|
4
12
|
|
5
13
|
- fix: Change signed-out & interstitial request state conditions [https://github.com/clerkinc/clerk-sdk-ruby/pull/30]
|
@@ -50,7 +58,7 @@ Identical to 2.9.0.beta3
|
|
50
58
|
|
51
59
|
## 2.2.0 - 2022-08-26
|
52
60
|
|
53
|
-
- feat: Add support for the [users.create](https://
|
61
|
+
- feat: Add support for the [users.create](https://clerk.com/docs/reference/backend-api/tag/Users#operation/CreateUser) endpoint
|
54
62
|
|
55
63
|
## 2.1.2 - 2022-08-26
|
56
64
|
|
@@ -63,15 +71,15 @@ Identical to 2.9.0.beta3
|
|
63
71
|
## 2.0.0 - 2021-10-21
|
64
72
|
|
65
73
|
This release introduces the new networkless middleware which works with the new
|
66
|
-
authentication scheme, [Auth v2](https://
|
74
|
+
authentication scheme, [Auth v2](https://clerk.com/docs/upgrade-guides/auth-v2).
|
67
75
|
|
68
76
|
It is backwards-incompatible with applications using Auth v1.
|
69
77
|
|
70
78
|
- [BREAKING]: In order to use this version, you must set the authVersion prop
|
71
79
|
accordingly in your frontend: `Clerk.load({authVersion: 2})`
|
72
80
|
|
73
|
-
For more information on Auth v2, please refer to
|
74
|
-
https://
|
81
|
+
For more information on Auth v2, please refer to
|
82
|
+
https://clerk.com/docs/upgrade-guides/auth-v2.
|
75
83
|
|
76
84
|
## 1.0.3 - 2021-07-21
|
77
85
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<a href="https://www.clerk.
|
2
|
+
<a href="https://www.clerk.com/?utm_source=github&utm_medium=starter_repos&utm_campaign=sdk_ruby" target="_blank" align="center">
|
3
3
|
<picture>
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="./docs/clerk-logo-dark.png">
|
5
5
|
<img src="./docs/clerk-logo-light.png" height="64">
|
@@ -10,10 +10,10 @@
|
|
10
10
|
|
11
11
|
# Clerk Ruby SDK
|
12
12
|
|
13
|
-
This SDK allows you to call the [Clerk](https://www.clerk.
|
13
|
+
This SDK allows you to call the [Clerk](https://www.clerk.com/?utm_source=github&utm_medium=starter_repos&utm_campaign=sdk_ruby) Backend API from Ruby code without having to implement the calls yourself.
|
14
14
|
|
15
15
|
[![chat on Discord](https://img.shields.io/discord/856971667393609759.svg?logo=discord)](https://discord.com/invite/b5rXHjAg7A)
|
16
|
-
[![documentation](https://img.shields.io/badge/documentation-clerk-green.svg)](https://
|
16
|
+
[![documentation](https://img.shields.io/badge/documentation-clerk-green.svg)](https://clerk.com/docs)
|
17
17
|
[![twitter](https://img.shields.io/twitter/follow/ClerkDev?style=social)](https://twitter.com/intent/follow?screen_name=ClerkDev)
|
18
18
|
|
19
19
|
---
|
@@ -25,7 +25,7 @@ Would you like to work on Open Source software and help maintain this repository
|
|
25
25
|
---
|
26
26
|
|
27
27
|
**Note**: You're looking at the main branch, which requires that you use [Auth
|
28
|
-
v2](https://clerk.
|
28
|
+
v2](https://clerk.com/docs/upgrade-guides/auth-v2).
|
29
29
|
|
30
30
|
If you're looking for the legacy authentication scheme, refer to the
|
31
31
|
[`v1`](https://github.com/clerkinc/clerk-sdk-ruby/tree/v1) branch.
|
@@ -49,10 +49,10 @@ Or install it yourself as:
|
|
49
49
|
## Quick Start
|
50
50
|
|
51
51
|
First, you need to get an API key for a Clerk instance. This is done via the
|
52
|
-
[Clerk dashboard](https://dashboard.clerk.
|
52
|
+
[Clerk dashboard](https://dashboard.clerk.com/applications).
|
53
53
|
|
54
54
|
Then you can instantiate a `Clerk::SDK` instance and access all
|
55
|
-
[Backend API](https://
|
55
|
+
[Backend API](https://clerk.com/docs/reference/backend-api) endpoints.
|
56
56
|
Here's a quick example:
|
57
57
|
|
58
58
|
```ruby
|
@@ -156,7 +156,7 @@ API then responds with JSON which is then converted and returned as a Ruby
|
|
156
156
|
`Hash`, or `Array` of hashes. Errors are also returned as a JSON object, with a
|
157
157
|
single key (`errors`) containing an array of error objects.
|
158
158
|
|
159
|
-
Read the [API documentation](https://
|
159
|
+
Read the [API documentation](https://clerk.com/docs/reference/backend-api)
|
160
160
|
for details on expected parameters and response formats.
|
161
161
|
|
162
162
|
## Development
|
@@ -24,7 +24,7 @@ module Clerk
|
|
24
24
|
# which already contains the verified claims as retrieved from the session
|
25
25
|
# token.
|
26
26
|
#
|
27
|
-
# See https://
|
27
|
+
# See https://clerk.com/docs/reference/backend-api/tag/Sessions#operation/VerifySession
|
28
28
|
def clerk_reverify_session!
|
29
29
|
request.env["clerk"].verify_session
|
30
30
|
end
|
@@ -195,11 +195,11 @@ module Clerk
|
|
195
195
|
end
|
196
196
|
|
197
197
|
# Outcome C
|
198
|
-
def unknown(interstitial: false, opts
|
199
|
-
return [401, interstitial_headers(opts), []] if !interstitial
|
198
|
+
def unknown(interstitial: false, **opts)
|
199
|
+
return [401, interstitial_headers(**opts), []] if !interstitial
|
200
200
|
|
201
201
|
# Load Clerk.js to update the __session and __client_uat cookies.
|
202
|
-
[401, interstitial_headers(opts), [sdk.interstitial]]
|
202
|
+
[401, interstitial_headers(**opts), [sdk.interstitial]]
|
203
203
|
end
|
204
204
|
|
205
205
|
def development_or_staging?
|
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: 2.10.0
|
4
|
+
version: 2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clerk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -143,9 +143,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: 2.4.0
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
|
-
- - "
|
146
|
+
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
148
|
+
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubygems_version: 3.2.3
|
151
151
|
signing_key:
|