Skip to content

Commit b6fb913

Browse files
fix: update auth flows for user pool client
1 parent bde8f23 commit b6fb913

File tree

1 file changed

+4
-2
lines changed
  • python/amazon-verified-permissions-rest-api/stack/cognito

1 file changed

+4
-2
lines changed

python/amazon-verified-permissions-rest-api/stack/cognito/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(
2020
feature_plan=cognito.FeaturePlan.LITE,
2121
sign_in_aliases=cognito.SignInAliases(email=True, username=False),
2222
self_sign_up_enabled=True,
23-
removal_policy=RemovalPolicy.DESTROY, # Remove this line for production use
23+
removal_policy=RemovalPolicy.DESTROY, # Remove this line for production use
2424
)
2525

2626
cognito.UserPoolGroup(
@@ -45,5 +45,7 @@ def __init__(
4545
self,
4646
"UserPoolClient",
4747
user_pool=self.user_pool,
48-
auth_flows=cognito.AuthFlow(user_srp=True),
48+
auth_flows=cognito.AuthFlow(
49+
user_password=True,
50+
),
4951
)

0 commit comments

Comments
 (0)