Interface AuthFlow
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AuthFlow.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:17.283Z")
@Stability(Stable)
public interface AuthFlow
extends software.amazon.jsii.JsiiSerializable
Types of authentication flow.
Example:
UserPool userPool = UserPool.Builder.create(this, "myuserpool")
.signInPolicy(SignInPolicy.builder()
.allowedFirstAuthFactors(AllowedFirstAuthFactors.builder()
.password(true) // password authentication must be enabled
.emailOtp(true) // enables email message one-time password
.smsOtp(true) // enables SMS message one-time password
.passkey(true)
.build())
.build())
.build();
// You should also configure the user pool client with USER_AUTH authentication flow allowed
userPool.addClient("myclient", UserPoolClientOptions.builder()
.authFlows(AuthFlow.builder().user(true).build())
.build());
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthFlow.Builderbuilder()default BooleanEnable admin based user password authentication flow.default BooleanEnable custom authentication flow.default BooleangetUser()Enable Choice-based authentication.default BooleanEnable auth using username & password.default BooleanEnable SRP based authentication.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAdminUserPassword
Enable admin based user password authentication flow.Default: false
-
getCustom
Enable custom authentication flow.Default: false
-
getUser
Enable Choice-based authentication.Default: false
-
getUserPassword
Enable auth using username & password.Default: false
-
getUserSrp
Enable SRP based authentication.Default: false
-
builder
- Returns:
- a
AuthFlow.BuilderofAuthFlow
-