Skip to content

feat(backend): introduce handshake #2300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
23046d5
feat(backend): Try the new Client Handshake mechanism
SokratisVidros Nov 30, 2023
88f877a
feat(backend): Update authenticateRequest handler to support multi-do…
brkalow Nov 30, 2023
184792f
feat(repo): Introduce tests for client handshake (#2265)
colinclerk Dec 5, 2023
3b170f6
chore(backend): Refactor authenticateRequest to clarify logic
colinclerk Dec 7, 2023
caff87f
fix(backend): Fix options passing to authenticateRequest
brkalow Dec 7, 2023
bd83a61
feat(backend): Add sec-fetch-dest check for satellite sync, adjust te…
brkalow Dec 8, 2023
dbd36bf
feat(backend): Account for clock skew in dev, but still log error
brkalow Dec 8, 2023
4f2af5a
feat(backend): Refactor backend tests to account for recent refactori…
brkalow Dec 8, 2023
dc01001
feat(backend): Treat handshake payload as a signed jwt
brkalow Dec 11, 2023
ae9cbf9
fix(backend): Add tests and adjust logic to ensure existing tests pass
brkalow Dec 11, 2023
9f1c428
chore(backend): Refactor tests to conform to new method signature
brkalow Dec 12, 2023
25eeb3f
chore(repo): Add changeset
brkalow Dec 12, 2023
2a7750b
feat(*): Drop interstitial (#2304)
nikosdouvlis Dec 12, 2023
9b76632
chore(*): Fix linter
nikosdouvlis Dec 12, 2023
7eed1b2
chore(backend): Remove unused AuthErrorReason properties, destructure…
brkalow Dec 12, 2023
91404bc
chore(clerk-js): Remove unused @ts-expect-error directive
brkalow Dec 12, 2023
59943a5
fix: Address build issues in sdk-node
SokratisVidros Dec 13, 2023
e4b8cf1
fix(remix): Correct Remix build issues
SokratisVidros Dec 13, 2023
fb6e5c1
chore(repo): Apply linting fixes
SokratisVidros Dec 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/nice-doors-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@clerk/backend': major
---

- Refactor the `authenticateRequest()` flow to use the new client handshake endpoint. This replaces the previous "interstitial"-based flow. This should improve performance and overall reliability of Clerk's server-side request authentication functionality.
- `authenticateRequest()` now accepts two arguments, a `Request` object to authenticate and options:
```ts
authenticateRequest(new Request(...), { secretKey: '...' })
```
Loading