@@ -163,8 +163,8 @@ type (
163163 PasswordRequirements PasswordRequirements `toml:"password_requirements" json:"password_requirements"`
164164 SigningKeysPath string `toml:"signing_keys_path" json:"signing_keys_path"`
165165 SigningKeys []JWK `toml:"-" json:"-"`
166- Passkey * passkey `toml:"passkey" json:"passkey"`
167- Webauthn * webauthn `toml:"webauthn" json:"webauthn"`
166+ Passkey * Passkey `toml:"passkey" json:"passkey"`
167+ Webauthn * Webauthn `toml:"webauthn" json:"webauthn"`
168168
169169 RateLimit rateLimit `toml:"rate_limit" json:"rate_limit"`
170170 Captcha * captcha `toml:"captcha" json:"captcha"`
@@ -381,11 +381,11 @@ type (
381381 Ethereum ethereum `toml:"ethereum" json:"ethereum"`
382382 }
383383
384- passkey struct {
384+ Passkey struct {
385385 Enabled bool `toml:"enabled" json:"enabled"`
386386 }
387387
388- webauthn struct {
388+ Webauthn struct {
389389 RpDisplayName string `toml:"rp_display_name" json:"rp_display_name"`
390390 RpId string `toml:"rp_id" json:"rp_id"`
391391 RpOrigins []string `toml:"rp_origins" json:"rp_origins"`
@@ -517,25 +517,25 @@ func (c *captcha) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
517517 c .Enabled = ValOrDefault (remoteConfig .SecurityCaptchaEnabled , false )
518518}
519519
520- func (p passkey ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
520+ func (p Passkey ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
521521 body .PasskeyEnabled = cast .Ptr (p .Enabled )
522522}
523523
524- func (p * passkey ) fromAuthConfig (remoteConfig v1API.AuthConfigResponse ) {
524+ func (p * Passkey ) fromAuthConfig (remoteConfig v1API.AuthConfigResponse ) {
525525 // When local config is not set, we assume platform defaults should not change
526526 if p == nil {
527527 return
528528 }
529529 p .Enabled = remoteConfig .PasskeyEnabled
530530}
531531
532- func (w webauthn ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
532+ func (w Webauthn ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
533533 body .WebauthnRpDisplayName = nullable .NewNullableWithValue (w .RpDisplayName )
534534 body .WebauthnRpId = nullable .NewNullableWithValue (w .RpId )
535535 body .WebauthnRpOrigins = nullable .NewNullableWithValue (strings .Join (w .RpOrigins , "," ))
536536}
537537
538- func (w * webauthn ) fromAuthConfig (remoteConfig v1API.AuthConfigResponse ) {
538+ func (w * Webauthn ) fromAuthConfig (remoteConfig v1API.AuthConfigResponse ) {
539539 // When local config is not set, we assume platform defaults should not change
540540 if w == nil {
541541 return
0 commit comments