Skip to content

Commit

Permalink
fix(auth): Custom auth with device tracking, no SRP (#3652)
Browse files Browse the repository at this point in the history
The fix in #3558 assumed that device SRP would only be performed when password SRP had previously been performed as part of a custom Auth workflow. However, this is not true. In custom auth workflows without password SRP, device SRP can still be required when device tracking is enabled, and in this case it is not a requirement that password SRP have been previously performed.
  • Loading branch information
dnys1 authored Aug 31, 2023
1 parent fca9d4d commit 0e99647
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 262 deletions.
9 changes: 8 additions & 1 deletion infra/lib/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,17 @@ export class AmplifyFlutterIntegStack extends cdk.Stack {
{
associateWithWaf,
type: "FULL",
environmentName: "custom-auth-device-srp",
environmentName: "custom-auth-device-with-srp",
customAuth: "WITH_SRP",
deviceTracking: deviceTrackingAlways,
},
{
associateWithWaf,
type: "FULL",
environmentName: "custom-auth-device-without-srp",
customAuth: "WITHOUT_SRP",
deviceTracking: deviceTrackingAlways,
},
{
associateWithWaf,
type: "FULL",
Expand Down
Loading

0 comments on commit 0e99647

Please sign in to comment.