diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-03-03 22:20:43 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-03 22:20:43 +1100 |
| commit | 8f05846e214df843ad8b996525b65ebef02a5686 (patch) | |
| tree | 7da518dd4a78ebaac2920add5e1163e7f7eb447c /internal/authentication/const.go | |
| parent | 3c0d9b3b5785de86801c3d839a4999d3ecbf37fb (diff) | |
feat: webauthn (#2707)
This implements Webauthn. Old devices can be used to authenticate via the appid compatibility layer which should be automatic. New devices will be registered via Webauthn, and devices which do not support FIDO2 will no longer be able to be registered. At this time it does not fully support multiple devices (backend does, frontend doesn't allow registration of additional devices). Does not support passwordless.
Diffstat (limited to 'internal/authentication/const.go')
| -rw-r--r-- | internal/authentication/const.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/authentication/const.go b/internal/authentication/const.go index 7e38b121c..9bc072a44 100644 --- a/internal/authentication/const.go +++ b/internal/authentication/const.go @@ -19,8 +19,8 @@ const ( const ( // TOTP Method using Time-Based One-Time Password applications like Google Authenticator. TOTP = "totp" - // U2F Method using U2F devices like Yubikeys. - U2F = "u2f" + // Webauthn Method using Webauthn devices like YubiKeys. + Webauthn = "webauthn" // Push Method using Duo application to receive push notifications. Push = "mobile_push" ) @@ -37,7 +37,7 @@ const ( ) // PossibleMethods is the set of all possible 2FA methods. -var PossibleMethods = []string{TOTP, U2F, Push} +var PossibleMethods = []string{TOTP, Webauthn, Push} // CryptAlgo the crypt representation of an algorithm used in the prefix of the hash. type CryptAlgo string |
