Browse Source

Replace to_string with to_owned

Signed-off-by: Kowalski Dragon (kowalski7cc) <kowalski7cc@users.noreply.github.com>
pull/7749/head
Kowalski Dragon (kowalski7cc) 1 week ago
parent
commit
2a4dda3f25
No known key found for this signature in database GPG Key ID: C4E819BD2BC6233E
  1. 4
      src/config.rs

4
src/config.rs

@ -846,9 +846,9 @@ make_config! {
/// Client cache for discovery endpoint. |> Duration in seconds (0 or less to disable). More details: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect#client-cache
sso_client_cache_expiration: u64, true, def, 0;
/// Skip 2FA for SSO/social login |> `false` keeps Vaultwarden 2FA, `true` always skips it, `auto` skips it only when the IdP returns an MFA AMR or ACR claim
sso_2fa_skip: String, true, def, "false".to_string();
sso_2fa_skip: String, true, def, "false".to_owned();
/// SSO 2FA AMR values |> Comma-separated AMR values that satisfy `SSO_2FA_SKIP=auto`
sso_2fa_amr: String, true, def, "mfa,otp,fido2,webauthn,hwk".to_string();
sso_2fa_amr: String, true, def, "mfa,otp,fido2,webauthn,hwk".to_owned();
/// Log all tokens |> `LOG_LEVEL=debug` or `LOG_LEVEL=info,vaultwarden::sso=debug` is required
sso_debug_tokens: bool, true, def, false;
},

Loading…
Cancel
Save