Document webauthn keys

This commit is contained in:
Manav Rathi
2024-06-10 16:44:07 +05:30
parent b9d4f9ff10
commit d47287095d
2 changed files with 8 additions and 7 deletions

View File

@@ -233,11 +233,15 @@ stripe:
success: ?status=success&session_id={CHECKOUT_SESSION_ID}
cancel: ?status=fail&reason=canceled
# Passkey support (WIP)
# Passkey support (optional)
# Use case: MFA
webauthn:
rpid: "example.com"
rporigins:
- "https://example.com:3005"
# Our "Relying Party" ID. This scopes the generated credentials.
# See: https://www.w3.org/TR/webauthn-3/#rp-id
rpid:
# Whitelist of origins from where we will accept WebAuthn requests.
# See: https://github.com/go-webauthn/webauthn
rporigins: []
# Roadmap SSO (optional)
#

View File

@@ -60,9 +60,6 @@ func NewRepository(
db *sql.DB,
) (repo *Repository, err error) {
rpId := viper.GetString("webauthn.rpid")
if rpId == "" {
rpId = "accounts.ente.io"
}
rpOrigins := viper.GetStringSlice("webauthn.rporigins")
wconfig := &webauthn.Config{