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

Fix WebAuthn when event body is base64 encoded (like when deploying to Vercel) #6757

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

cannikin
Copy link
Member

@cannikin cannikin commented Oct 27, 2022

If this could be a 3.2.2 that'd be awesome. Otherwise can wait for 3.3.0.

Closes #6756

@cannikin cannikin added topic/auth release:fix This PR is a fix labels Oct 27, 2022
@arimendelow
Copy link
Contributor

This looks great! Thank you for the amazingly quick turnaround time on this! :)

@cannikin
Copy link
Member Author

Sweet! I’ll add a test to verify that it works as expected with the encoded body.

@cannikin cannikin merged commit 8b90a78 into main Nov 3, 2022
@cannikin cannikin deleted the rc-base64-webauthn branch November 3, 2022 21:48
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Nov 3, 2022
github-actions bot pushed a commit that referenced this pull request Nov 3, 2022
…o Vercel) (#6757)

* Use existing this.params instead of parsing this.event.body again

* Adds test covering base64 encoded body for WebAuthn requests
jtoar pushed a commit that referenced this pull request Nov 3, 2022
…o Vercel) (#6757)

* Use existing this.params instead of parsing this.event.body again

* Adds test covering base64 encoded body for WebAuthn requests
dac09 added a commit that referenced this pull request Nov 7, 2022
…aching

* 'main' of github.com:redwoodjs/redwood: (21 commits)
  [Tutorial]: Fix Typescript code blocks inconsistency (#6801)
  chore: update all contributors
  Custom auth: Fix comment in template (#6804)
  fix(deps): update dependency eslint to v8.26.0 (#6785)
  [CRWA]: Switch to using enquirer, add engine compatibility override option (#6723)
  (docs): Minor Command update about Storybook (#6722)
  docs: Add mocking useLocation to docs (#6791)
  Update generated render.yaml (#6771)
  fix flightcontrol config template (#6789)
  fix: publish canary using premajor (#6794)
  Strip resetToken and resetTokenExpiresAt from dbAuth forgotPassword handler (#6778)
  Fix WebAuthn when event body is base64 encoded (like when deploying to Vercel) (#6757)
  fix(deps): update jest monorepo (#6787)
  fix(deps): update dependency react-hook-form to v7.39.1 (#6786)
  fix(deps): update dependency fastify to v4.9.2 (#6781)
  fix(deps): update dependency @apollo/client to v3.7.1 (#6780)
  chore: fix and rebuild test project fixture (#6775)
  fix: add prisma resolutions to tutorial e2e test proj (#6772)
  fix(deps): update prisma monorepo to v4.5.0 (#6485)
  Fix dbauth webauthn template (redundant type import) (#6769)
  ...
jtoar pushed a commit that referenced this pull request Nov 8, 2022
…o Vercel) (#6757)

* Use existing this.params instead of parsing this.event.body again

* Adds test covering base64 encoded body for WebAuthn requests
@jtoar
Copy link
Contributor

jtoar commented Nov 8, 2022

@arimendelow this is now out in v3.3.1

jtoar pushed a commit that referenced this pull request Nov 8, 2022
…o Vercel) (#6757)

* Use existing this.params instead of parsing this.event.body again

* Adds test covering base64 encoded body for WebAuthn requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: WebAuthn server registration does not work on Vercel (and other hosts that base64 encode their body)
3 participants