You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cfec0ce
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## Unreleased
4
4
5
+
### Changed
6
+
7
+
- BREAKING!: The WebAuthn options endpoints (`passkey_registration_options`, `passkey_authentication_options`, `security_key_registration_options` and `security_key_authentication_options`) now respond to `POST` instead of `GET`, since they mutate server state (they store the WebAuthn challenge in the session). If you overrode any of these controllers, rename the overridden `index` action to `create`; if you copied the bundled JavaScript into your app, update your copy. [@santiagorodriguez96]
-Must contain a hidden input with `data-webauthn-target="response"` to store the credential response
301
-
-Must contain the submit button — the element intercepts form submission, calls the WebAuthnAPI, stores the credential in the hidden input, andthen re-submits the form
303
+
-Must contain the submit button – the element intercepts form submission, fetches the options, calls the WebAuthnAPI, stores the credential in the hidden input, andthen re-submits the form
<button type="submit">Sign in with Passkey</button>
312
314
</webauthn-get>
@@ -318,9 +320,11 @@ Used for authenticating with existing credentials.
318
320
-The form's action should point to the appropriate endpoint – you can use the provided url helpers:
319
321
- For passkey sign-in: `session_path(resource_name)`
320
322
- For 2FA with WebAuthn: `two_factor_authentication_path(resource_name)`
321
-
- Requires a `data-options-json` attribute containing JSON-serialized WebAuthn request options
323
+
- Requires a `data-options-url` attribute pointing to the endpoint serving the WebAuthn request options – you can use the provided url helpers:
324
+
- For passkey authentication options: `passkey_authentication_options_path(resource_name)`
325
+
- For 2FA security key authentication options: `security_key_authentication_options_path(resource_name)`
322
326
- Must contain a hidden input with `data-webauthn-target="response"` to store the credential response
323
-
- Must contain the submit button — the element intercepts form submission, calls the WebAuthn API, stores the credential in the hidden input, and then re-submits the form
327
+
- Must contain the submit button – the element intercepts form submission, fetches the options, calls the WebAuthn API, stores the credential in the hidden input, and then re-submits the form
0 commit comments