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