summaryrefslogtreecommitdiff
path: root/internal/config/parser.go
diff options
context:
space:
mode:
authorGravatar Florian RĂ¼chel <florian.ruechel.github@inexplicity.de> 2023-11-06 04:27:35 +1030
committerGravatar GitHub <noreply@github.com> 2023-11-05 18:57:35 +0100
commit62ef8ed57aab9f2b05a64b153d231ae4f42769f4 (patch)
treeacc33ab1fd02113f8fc93751e593dc67ff504a84 /internal/config/parser.go
parent62188b49f072ea3c2bf30a8ed42f8b9303840191 (diff)
downloadv2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.tar.gz
v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.tar.zst
v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.zip
Add WebAuthn / Passkey integration
This is a rebase of #1618 in which @dave-atx added WebAuthn support. Closes #1618
Diffstat (limited to 'internal/config/parser.go')
-rw-r--r--internal/config/parser.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/parser.go b/internal/config/parser.go
index f354e5b5..454d2c99 100644
--- a/internal/config/parser.go
+++ b/internal/config/parser.go
@@ -244,6 +244,8 @@ func (p *Parser) parseLines(lines []string) (err error) {
randomKey := make([]byte, 16)
rand.Read(randomKey)
p.opts.proxyPrivateKey = parseBytes(value, randomKey)
+ case "WEBAUTHN":
+ p.opts.webAuthn = parseBool(value, defaultWebAuthn)
}
}