Commit Graph

6 Commits

Author SHA1 Message Date
Penar Musaraj
021a02c3d8
FIX: Webauthn origin was incorrect for subfolder setups () 2024-02-12 16:27:24 -05:00
Kelv
2477bcc32e
DEV: lint against Layout/EmptyLineBetweenDefs () 2023-12-15 23:46:04 +08:00
Penar Musaraj
0af6c5efdc
DEV: Refactor webauthn to support passkeys (1/3) ()
This is part 1 of 3, split up of PR . This PR refactors the
webauthn code to support passkey authentication/registration.

Passkeys aren't used yet, that is coming in PRs 2 and 3.

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2023-10-03 14:59:28 -04:00
Penar Musaraj
006a5166e5
DEV: Refactor rp_id and rp_name ()
They're both constant per-instance values, there is no need to store them
in the session. This also makes the code a bit more readable by moving
the `session_challenge_key` method up to the `DiscourseWebauthn` module.
2023-08-31 09:11:23 -04:00
Penar Musaraj
4c3ee1b211
DEV: Remove unused code ()
This method slipped in by accident in 10c6b2a and is not used.
2023-08-21 15:01:05 -04:00
Penar Musaraj
10c6b2a0c2
WIP: Rename Webauthn to DiscourseWebauthn () 2023-08-18 08:39:10 -04:00