We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9052f8 + 9776871 commit 8ca89e5Copy full SHA for 8ca89e5
1 file changed
api/internal/middleware/auth/auth.go
@@ -139,9 +139,9 @@ func NewCookiePASession(id string) *fiber.Cookie {
139
func NewWebAuthn(cfg config.APIConfig) *webauthn.WebAuthn {
140
var webAuthn *webauthn.WebAuthn
141
config := &webauthn.Config{
142
- RPDisplayName: cfg.Name, // Display Name for your site
143
- RPID: cfg.FQDN, // Generally the FQDN for your site
144
- RPOrigins: []string{cfg.ApiAllowOrigin}, // The origin URLs allowed for WebAuthn requests
+ RPDisplayName: cfg.Name, // Display Name for your site
+ RPID: cfg.FQDN, // Generally the FQDN for your site
+ RPOrigins: strings.Split(cfg.ApiAllowOrigin, ","), // The origin URLs allowed for WebAuthn requests
145
}
146
147
webAuthn, err := webauthn.New(config)
0 commit comments