AddCustomLoginPolicyRequest constructor
AddCustomLoginPolicyRequest({
- bool? allowUsernamePassword,
- bool? allowRegister,
- bool? allowExternalIdp,
- bool? forceMfa,
- PasswordlessType? passwordlessType,
- bool? hidePasswordReset,
- bool? ignoreUnknownUsernames,
- String? defaultRedirectUri,
- Duration? passwordCheckLifetime,
- Duration? externalLoginCheckLifetime,
- Duration? mfaInitSkipLifetime,
- Duration? secondFactorCheckLifetime,
- Duration? multiFactorCheckLifetime,
- Iterable<
SecondFactorType> ? secondFactors, - Iterable<
MultiFactorType> ? multiFactors, - Iterable<
AddCustomLoginPolicyRequest_IDP> ? idps, - bool? allowDomainDiscovery,
- bool? disableLoginWithEmail,
- bool? disableLoginWithPhone,
- bool? forceMfaLocalOnly,
Implementation
factory AddCustomLoginPolicyRequest({
$core.bool? allowUsernamePassword,
$core.bool? allowRegister,
$core.bool? allowExternalIdp,
$core.bool? forceMfa,
$14.PasswordlessType? passwordlessType,
$core.bool? hidePasswordReset,
$core.bool? ignoreUnknownUsernames,
$core.String? defaultRedirectUri,
$4.Duration? passwordCheckLifetime,
$4.Duration? externalLoginCheckLifetime,
$4.Duration? mfaInitSkipLifetime,
$4.Duration? secondFactorCheckLifetime,
$4.Duration? multiFactorCheckLifetime,
$core.Iterable<$14.SecondFactorType>? secondFactors,
$core.Iterable<$14.MultiFactorType>? multiFactors,
$core.Iterable<AddCustomLoginPolicyRequest_IDP>? idps,
$core.bool? allowDomainDiscovery,
$core.bool? disableLoginWithEmail,
$core.bool? disableLoginWithPhone,
$core.bool? forceMfaLocalOnly,
}) {
final result = create();
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 (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;
}