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

User redirected to reset password after adding a passkey #318

Open
natalian98 opened this issue Oct 10, 2024 · 2 comments
Open

User redirected to reset password after adding a passkey #318

natalian98 opened this issue Oct 10, 2024 · 2 comments
Labels
enhancement New feature or request frontend This is a UI issue

Comments

@natalian98
Copy link
Contributor

After setting up a passwordless login method, the user is redirected to /ui/reset_password (the default settings url as specified in kratos config).
I think it would be better to redirect to /ui/setup_complete page instead, as the current sequence suggests users that the password should be changed in order for the previous settings to take effect.

Steps to reproduce:

  1. Log in and go to https://iam.dev.canonical.com/stg-identity-jaas-dev-login-ui/ui/setup_passkey.
  2. Type a key name (e.g. “test) and click on “Add security key” button.
  3. Click on “Use phone or tablet” option in the browser pop up. Turn on bluetooth.
  4. Scan the QR code from a phone or other webauthn-compatible device.
@natalian98 natalian98 added frontend This is a UI issue enhancement New feature or request labels Oct 10, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-1144.

This message was autogenerated

@edlerd
Copy link
Contributor

edlerd commented Oct 11, 2024

The UI does not control the redirect target. The webauthn.js script comes out of kratos and posts directly to kratos/self-service/settings?flow=:flowId and this response is a HTTP 303 with Location: http://localhost:4455/ui/reset_password?flow=:flowid. So in order to go to the setup_complete route, kratos will have to respond with a different location header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend This is a UI issue
Projects
None yet
Development

No branches or pull requests

2 participants