LoginPolicy constructor
LoginPolicy({
- ObjectDetails? details,
- bool? allowUsernamePassword,
- bool? allowRegister,
- bool? allowExternalIdp,
- bool? forceMfa,
- PasswordlessType? passwordlessType,
- bool? isDefault,
- bool? hidePasswordReset,
- bool? ignoreUnknownUsernames,
- String? defaultRedirectUri,
- Duration? passwordCheckLifetime,
- Duration? externalLoginCheckLifetime,
- Duration? mfaInitSkipLifetime,
- Duration? secondFactorCheckLifetime,
- Duration? multiFactorCheckLifetime,
- Iterable<
SecondFactorType> ? secondFactors, - Iterable<
MultiFactorType> ? multiFactors, - Iterable<
IDPLoginPolicyLink> ? idps, - bool? allowDomainDiscovery,
- bool? disableLoginWithEmail,
- bool? disableLoginWithPhone,
- bool? forceMfaLocalOnly,
Implementation
factory LoginPolicy({
$0.ObjectDetails? details,
$core.bool? allowUsernamePassword,
$core.bool? allowRegister,
$core.bool? allowExternalIdp,
$core.bool? forceMfa,
PasswordlessType? passwordlessType,
$core.bool? isDefault,
$core.bool? hidePasswordReset,
$core.bool? ignoreUnknownUsernames,
$core.String? defaultRedirectUri,
$1.Duration? passwordCheckLifetime,
$1.Duration? externalLoginCheckLifetime,
$1.Duration? mfaInitSkipLifetime,
$1.Duration? secondFactorCheckLifetime,
$1.Duration? multiFactorCheckLifetime,
$core.Iterable<SecondFactorType>? secondFactors,
$core.Iterable<MultiFactorType>? multiFactors,
$core.Iterable<$2.IDPLoginPolicyLink>? idps,
$core.bool? allowDomainDiscovery,
$core.bool? disableLoginWithEmail,
$core.bool? disableLoginWithPhone,
$core.bool? forceMfaLocalOnly,
}) {
final result = create();
if (details != null) result.details = details;
if (allowUsernamePassword != null)
result.allowUsernamePassword = allowUsernamePassword;
if (allowRegister != null) result.allowRegister = allowRegister;
if (allowExternalIdp != null) result.allowExternalIdp = allowExternalIdp;
if (forceMfa != null) result.forceMfa = forceMfa;
if (passwordlessType != null) result.passwordlessType = passwordlessType;
if (isDefault != null) result.isDefault = isDefault;
if (hidePasswordReset != null) result.hidePasswordReset = hidePasswordReset;
if (ignoreUnknownUsernames != null)
result.ignoreUnknownUsernames = ignoreUnknownUsernames;
if (defaultRedirectUri != null)
result.defaultRedirectUri = defaultRedirectUri;
if (passwordCheckLifetime != null)
result.passwordCheckLifetime = passwordCheckLifetime;
if (externalLoginCheckLifetime != null)
result.externalLoginCheckLifetime = externalLoginCheckLifetime;
if (mfaInitSkipLifetime != null)
result.mfaInitSkipLifetime = mfaInitSkipLifetime;
if (secondFactorCheckLifetime != null)
result.secondFactorCheckLifetime = secondFactorCheckLifetime;
if (multiFactorCheckLifetime != null)
result.multiFactorCheckLifetime = multiFactorCheckLifetime;
if (secondFactors != null) result.secondFactors.addAll(secondFactors);
if (multiFactors != null) result.multiFactors.addAll(multiFactors);
if (idps != null) result.idps.addAll(idps);
if (allowDomainDiscovery != null)
result.allowDomainDiscovery = allowDomainDiscovery;
if (disableLoginWithEmail != null)
result.disableLoginWithEmail = disableLoginWithEmail;
if (disableLoginWithPhone != null)
result.disableLoginWithPhone = disableLoginWithPhone;
if (forceMfaLocalOnly != null) result.forceMfaLocalOnly = forceMfaLocalOnly;
return result;
}