8000 Automatically trigger passkeys on login view by Firstyear · Pull Request #3307 · kanidm/kanidm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Automatically trigger passkeys on login view #3307

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 3 commits into from
Dec 19, 2024

Conversation

Firstyear
Copy link
Member

Fixes #3193

Checklist

  • This PR contains no AI generated code
  • book chapter included (if relevant)
  • design document included (if relevant)

Add an on-load handler to pkhtml.js so that when the partial
view is displayed passkey auth is automatically prompted for.
If the users browser blocks this event, the fallback manual
buttons still exist.
@Firstyear
Copy link
Member Author

Sorry @CEbbinghaus this PR is 3 times larger than you'd like.

Copy link
Collaborator
@CEbbinghaus CEbbinghaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, I cannot believe you are adding code 😒, that is so early 2000's of you. we really should have a policy that requires at minimum lines added == lines deleted 😉

FR tho I cannot believe this is all it took to get the popup coming up automatically. Or is this a browser dependent thing on whether it lets us prompt for passkeys without user interaction?

@Firstyear
Copy link
Member Author

Surprisingly it works in safari which was the problem child of all the browsers. I tested it as working on ff, safari and chromium.

@Firstyear Firstyear enabled auto-merge (squash) December 19, 2024 05:44
@Firstyear Firstyear merged commit 4f2eb8b into kanidm:master Dec 19, 2024
21 checks passed
Firstyear added a commit that referenced this pull request Dec 21, 2024
Add an on-load handler to pkhtml.js so that when the partial
view is displayed passkey auth is automatically prompted for.
If the users browser blocks this event, the fallback manual
buttons still exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Streamline login flow to fewer clicks/pages
2 participants
0