Skip to content
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

Move state cookies to under a single cookie #1343

Merged
merged 5 commits into from
Aug 4, 2023

Conversation

adamjmcgrath
Copy link
Contributor

📋 Changes

Currently we set up to 5 cookies to verify the authentication response (state, nonce, max_age, code_verifier, response_type)

Am moving these under a single cookie to make it easier to customize the cookie name and settings to implement a solution for #1297

The same change has been done in express-openid-connect auth0/express-openid-connect#168

The change is to 2 files:

  • src/auth0-session/handlers/callback.ts
  • src/auth0-session/handlers/login.ts

(the rest of the changes are tests)

@adamjmcgrath adamjmcgrath added the review:medium Medium review label Aug 3, 2023
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner August 3, 2023 16:43
@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextjs-auth0 ⬜️ Ignored (Inspect) Visit Preview Aug 4, 2023 10:09am

@adamjmcgrath adamjmcgrath marked this pull request as draft August 3, 2023 16:50
@adamjmcgrath adamjmcgrath marked this pull request as ready for review August 3, 2023 17:24
@adamjmcgrath adamjmcgrath merged commit 156a1a8 into main Aug 4, 2023
3 checks passed
@adamjmcgrath adamjmcgrath deleted the auth-verification-cookie branch August 4, 2023 12:52
@adamjmcgrath adamjmcgrath mentioned this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:medium Medium review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants