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

[htmx] Credential Update page #2897

Merged
merged 23 commits into from
Aug 1, 2024

Conversation

ToxicMushroom
Copy link
Collaborator

@ToxicMushroom ToxicMushroom commented Jul 13, 2024

Contains credential reset form, update page with (passkeys, attested passkeys, totp, password)

Checklist

  • This pr contains no AI generated code
  • cargo fmt has been run
  • cargo clippy has been run
  • cargo test has been run and passes
  • book chapter included (if relevant)
  • design document included (if relevant)

Defer implementation to blank_iff

Co-authored-by: James Hodgkinson <[email protected]>
Copy link
Member

@Firstyear Firstyear left a comment

Choose a reason for hiding this comment

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

This is a good start, but remember just because we did it before with modals and js like this doesn't mean we need to stick to this pattern now. I think you're trying to keep it too "the same" when you have the opportunity to approach things differently. For example, we could avoid modals and do something more like what github does or have inline forms, or we could even use htmx a bit more to avoid the js. Don't be limited by what we already have!

proto/src/internal/credupdate.rs Show resolved Hide resolved
server/core/src/https/views/mod.rs Outdated Show resolved Hide resolved
@ToxicMushroom ToxicMushroom marked this pull request as ready for review July 22, 2024 01:01
@ToxicMushroom
Copy link
Collaborator Author

Would be great if someone could test out the attested passkeys ui,
I kinda failed at this: https://kanidm.github.io/kanidm/master/accounts/account_policy.html#setting-webauthn-attestation-ca-lists, fido-mds-tool was complaining that my file wasn't valid or something and I hadn't bothered digging further.

remove totp needs to be reworked I think

@Firstyear
Copy link
Member

I'll test it for you during the week :)

@Firstyear
Copy link
Member

Seems to work:

Screenshot 2024-07-23 at 15 51 54
Screenshot 2024-07-23 at 15 52 17
Screenshot 2024-07-23 at 15 52 22

Only things are that there is a trailing slash that shouldn't be there, and the "name this passkey" should be autofocused already, and should accept "enter" key to submit the form. Otherwise works well!

Firstyear
Firstyear previously approved these changes Jul 25, 2024
@Firstyear
Copy link
Member

@yaleman what do you think?

@ToxicMushroom Just needs a rebase is the main thing

@yaleman
Copy link
Member

yaleman commented Jul 25, 2024

Looks great so far!

Copy link
Member

@Firstyear Firstyear left a comment

Choose a reason for hiding this comment

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

Minor changes but looking good :)

server/core/src/https/views/reset.rs Show resolved Hide resolved
server/core/src/https/views/reset.rs Outdated Show resolved Hide resolved
@Firstyear
Copy link
Member

Also needs a rebase to master :)

@Firstyear
Copy link
Member

@yaleman Up to you now :)

@Firstyear Firstyear enabled auto-merge (squash) August 1, 2024 01:01
@Firstyear Firstyear merged commit f82a52d into kanidm:master Aug 1, 2024
23 of 25 checks passed
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.

3 participants