Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signin with Custom Auth With SRP issues token without triggering the CUSTOM_CHALLENGE #2566

Closed
1 task done
doanpt opened this issue Aug 19, 2023 · 9 comments
Closed
1 task done
Labels
auth Related to the Auth category/plugins pending-community-response Issue is pending response from the issue requestor

Comments

@doanpt
Copy link

doanpt commented Aug 19, 2023

Before opening, please confirm:

Language and Async Model

Kotlin - Coroutines

Amplify Categories

Authentication

Gradle script dependencies

    implementation 'com.amplifyframework:aws-auth-cognito:2.11.2'
    implementation 'com.amplifyframework:core:2.11.2'
    implementation 'com.amplifyframework:core-kotlin:2.11.2'

Environment information

------------------------------------------------------------
Gradle 7.4
------------------------------------------------------------

 

Build time:   2022-02-08 09:58:38 UTC
Revision:     f0d9291c04b90b59445041eaa75b2ee744162586

 

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          11.0.20 (OpenLogic 11.0.20+8-adhoc..jdk11u)
OS:           Windows 11 10.0 amd64

Please include any relevant guides or documentation you're referencing

https://docs.amplify.aws/lib/auth/signin_with_custom_flow/q/platform/android/#custom-auth-flow-with-srp

Describe the bug

My app used Amplify 0.1.32.0, but sometimes my app crashed after submitting MFA that described on issue:#2560

After research and I see the same issue that occurred and may resolve on the new version, So I decided to upgrade to Amplify V2,
But we faced a new issue that was described on #2331. On that issue, your team said it was fixed on version 24.0 and 2.11.0 but I am still facing it on version 2.11.2.

In our application using amplify 2.11.2, during login, the user will need to enter the correct password and then the user will need to enter MFA for confirmation, however, we try again and again in case the user enters the correct password and then enter the wrong mfa. After a period of repeating that action, after the user enters the correct password, the user directly enters the home screen without having to enter the MFA. This issue never occurred on my application with amplify version 0.1.32.0

I added Amplify.addPlugin(AndroidLoggingPlugin(LogLevel.VERBOSE)) this plugin and you can read detailed log.

Note that: Issue occurred on 08-18 16:21:55.198, app received AuthSignInResult as AuthSignInResult{isSignedIn=true, nextStep=AuthNextSignInStep{signInStep=DONE, additionalInfo={}, codeDeliveryDetails=null}} even though only enter the correct password and don't see the request to enter the MFA

Reproduction steps (if applicable)

  1. Configure amplify with CUSTOM_AUTH with the lambda triggers (for define/create and verify auth triggers) from examples provided
  2. Login to an existing user using Custom Auth Flow with SRP and Sign in next steps as described in the official links shared
  3. Signin immediately succeeds with nextStep.signInStep having AuthSignInStep.DONE instead of AuthSignInStep.CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE to confirm the auth challenge.

Code Snippet

// Put your code below this line.
override suspend fun signIn(
    username: String,
    password: String,
    token: String?
): AmplifyAuthInterface.SignInState {
    return try {
        val result = amplifyAuth.signIn(username, password)
        if (result.isSignedIn) {
            AmplifyAuthInterface.SignInState.Success
        } else {
            val additionalInfo = result.nextStep.additionalInfo

            // Default to `true` if value not found since phone number can be assumed to be verified
            val phoneNumberVerified =
                additionalInfo?.get(PHONE_VERIFIED_TYPE_KEY)?.toBooleanStrictOrNull() ?: true

            val isPhoneAccessDisabled =
                additionalInfo?.get(PHONE_ACCESS_DISABLED)?.toBooleanStrictOrNull() ?: true

            val authChallenge = additionalInfo?.get(AUTH_CHALLENGE_TYPE_KEY)
            val phoneSuffix = result.nextStep.additionalInfo?.get(AUTH_PHONE_SUFFIX)
            when {
                needVerifyPhoneAccess && !isPhoneAccessDisabled -> AmplifyAuthInterface.SignInState.PhoneDisable
                // Check phone number verified first
                !phoneNumberVerified -> AmplifyAuthInterface.SignInState.PhoneNumberNotVerified

                authChallenge == AUTH_MEDIUM_KEY -> {
                    if (token != null) {
                        //login with biometric
                        val confirmCodeResult = amplifyAuth.confirmSignIn(
                            getGenerateCodeValue(AmplifyVerificationMedium.Biometric)
                        )
                        if (confirmCodeResult.isSignedIn) {
                            AmplifyAuthInterface.SignInState.Success
                        } else {
                            val confirmationCode = getConfirmCodeValue(
                                AmplifyVerificationMedium.Biometric, token
                            )
                            val codeResult = amplifyAuth.confirmSignIn(confirmationCode)
                            if (codeResult.isSignedIn) {
                                AmplifyAuthInterface.SignInState.Success
                            } else {
                                AmplifyAuthInterface.SignInState.TFAMethod(phoneSuffix)
                            }
                        }
                    } else {
                        AmplifyAuthInterface.SignInState.TFAMethod(phoneSuffix)
                    }
                }
                else -> AmplifyAuthInterface.SignInState.UnexpectedState
            }
        }
    } catch (e: AuthException) {
        Timber.e("signIn failed: $e")
        handleException(e)
    }
}
fun handleException(exception: Exception): AmplifyAuthInterface.SignInState {
    Timber.e("handleException: ${exception.cause}")
    Timber.e("handleException: ${exception.message}")
    if (exception.cause is UserLambdaValidationException) {
        return AmplifyAuthInterface.SignInState.SessionExpired
    }
    return when (exception) {
        is UserNotFoundException ->
            AmplifyAuthInterface.SignInState.UserNotFound
        is InvalidPasswordException ->
            AmplifyAuthInterface.SignInState.InvalidPassword
        is NotAuthorizedException ->
            if ((exception.cause as NotAuthorizedException).message == "Incorrect username or password.") {
                AmplifyAuthInterface.SignInState.InvalidPassword
            } else {
                AmplifyAuthInterface.SignInState.SessionExpired
            }
        is CodeExpiredException ->
            AmplifyAuthInterface.SignInState.CodeExpired
        is SessionExpiredException ->
            AmplifyAuthInterface.SignInState.SessionExpired
        is SignedInException -> {
            Timber.e("Handle exception that user already signed in")
            AmplifyAuthInterface.SignInState.Success
        }
        is TooManyRequestsException,
        is FailedAttemptsLimitExceededException,
        is CodeDeliveryFailureException,
        is LimitExceededException -> AmplifyAuthInterface.SignInState.RequestLimitExceeded
        else -> {
            Timber.d("Unknown exception: $exception")
            AmplifyAuthInterface.SignInState.UnknownFailure
        }
    }
}

Log output


Line 5845: 08-18 16:21:44.634  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=WaitingForAnswer(challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeFi2bMYEmK0R6Ge92h_y6rQAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAEa-EgsIONlgENDzx4Wr-fAAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM0DH0W5NNLSCGKUY3AgEQgDvE6bl5oTfRUqCzoQY-rCpI1DL7IzafL7_PJehDXGsGewvGtEEVP2xoHk9q9k9OgiXDaYZ7gCzTrAV2kgIAAAAADAAAEAAAAAAAAAAAAAAAAACVbX_jG5tGEvdtm39KoNI7_____wAAAAEAAAAAAAAAAAAAAAEAAAHF3NF95voBIAzyA7S0ozY5JTK3Johd5aRMTp5CGTks1prYw62Zp3bJJpyweYJUp0LDu0V6Fak9WZg-eXBF1INjw7bRuGy94DS2_fykKTCQMkzU-iOoWWQW938iZ2W5NKCjid6ZjCiSKIKIcZGuqOs7Rk5AjrNPvaYPBxHRUR_LWY9lp2fzSsTTCeQgkMAGKvRSTKPyGZJJ6XP80NmM4g1aoNLgWBUQYjmLo0DM6kh1hUEqA_ysviyTHog18WE1Og2k6GoExWhyg1RVQhanS6n7-gCMc9NUC8iJ-dyO31B84cuxlT0lYLbYeIak_hDD8_cFLyi6Je7A2HFrdCFuYsLlbtw0hZMGy-QMNkxRsFHIe77HI9YmH06_-zBG4wEODspJHjVCifSx4i1D54CBe5VW0VxpQsTyCwzlG-IpzAYuWjN2xzNWqKVrc_cH36uVJ8VoSHdc1FTZXr5w0BVYpV2K3ASVt4UiJJVX3dHZmHY2nV9BpZ8q7GPbsIxiF2KJuU5X4bqF6VAiJUdv2koCq_f3R8RK1NzWcnBlcsBMXQC7GvLEKANdeg51SyyU8msZYwEzjyuBXfjvMJFKdV3RS3HcSGVQ55CBrMmvcS04KiP1iMoOg6viJg, parameters={challengeType=code4}), hasNewResponse=true))), authZState=SigningIn(id=))
Line 5910: 08-18 16:21:44.757  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=Verifying(id=CUSTOM_CHALLENGE))), authZState=SigningIn(id=))
Line 5911: 08-18 16:21:44.757  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifySignInChallenge Starting execution
Line 5912: 08-18 16:21:44.758  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 5913: 08-18 16:21:44.759  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 5914: 08-18 16:21:44.759  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 5915: 08-18 16:21:44.764  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 5916: 08-18 16:21:44.765  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 5917: 08-18 16:21:44.766  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 5918: 08-18 16:21:44.766  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 5919: 08-18 16:21:44.767  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 6131: 08-18 16:21:45.670  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifySignInChallenge Sending event ThrowError
Line 6132: 08-18 16:21:45.673  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=Error(exception=UserLambdaValidationException(message=CreateAuthChallenge failed with error <CODE_VERIFY_LIMIT_EXCEED>.), challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeFi2bMYEmK0R6Ge92h_y6rQAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAEa-EgsIONlgENDzx4Wr-fAAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM0DH0W5NNLSCGKUY3AgEQgDvE6bl5oTfRUqCzoQY-rCpI1DL7IzafL7_PJehDXGsGewvGtEEVP2xoHk9q9k9OgiXDaYZ7gCzTrAV2kgIAAAAADAAAEAAAAAAAAAAAAAAAAACVbX_jG5tGEvdtm39KoNI7_____wAAAAEAAAAAAAAAAAAAAAEAAAHF3NF95voBIAzyA7S0ozY5JTK3Johd5aRMTp5CGTks1prYw62Zp3bJJpyweYJUp0LDu0V6Fak9WZg-eXBF1INjw7bRuGy94DS2_fykKTCQMkzU-iOoWWQW938iZ2W5NKCjid6ZjCiSKIKIcZGuqOs7Rk5AjrNPvaYPBxHRUR_LWY9lp2fzSsTTCeQgkMAGKvRSTKPyGZJJ6XP80NmM4g1aoNLgWBUQYjmLo0DM6kh1hUEqA_ysviyTHog18WE1Og2k6GoExWhyg1RVQhanS6n7-gCMc9NUC8iJ-dyO31B84cuxlT0lYLbYeIak_hDD8_cFLyi6Je7A2HFrdCFuYsLlbtw0hZMGy-QMNkxRsFHIe77HI9YmH06_-zBG4wEODspJHjVCifSx4i1D54CBe5VW0VxpQsTyCwzlG-IpzAYuWjN2xzNWqKVrc_cH36uVJ8VoSHdc1FTZXr5w0BVYpV2K3ASVt4UiJJVX3dHZmHY2nV9BpZ8q7GPbsIxiF2KJuU5X4bqF6VAiJUdv2koCq_f3R8RK1NzWcnBlcsBMXQC7GvLEKANdeg51SyyU8msZYwEzjyuBXfjvMJFKdV3RS3HcSGVQ55CBrMmvcS04KiP1iMoOg6viJg, parameters={challengeType=code4}), hasNewResponse=true))), authZState=SigningIn(id=))
Line 6672: 08-18 16:21:46.814  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
Line 6674: 08-18 16:21:46.815  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=NotStarted(id=)), authZState=SigningIn(id=))
Line 6676: 08-18 16:21:46.815  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Starting execution
Line 6677: 08-18 16:21:46.815  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Sending event InitiateCustomSignInWithSRP
Line 6678: 08-18 16:21:46.815  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=NotStarted(id=))), authZState=SigningIn(id=))
Line 6679: 08-18 16:21:46.816  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Starting execution
Line 6680: 08-18 16:21:46.816  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Sending event InitiateSRPWithCustom
Line 6683: 08-18 16:21:46.817  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=InitiatingSRPA(id=))), authZState=SigningIn(id=))
Line 6684: 08-18 16:21:46.817  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Starting execution
Line 6721: 08-18 16:21:46.828  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 6722: 08-18 16:21:46.828  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 6723: 08-18 16:21:46.828  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 6729: 08-18 16:21:46.830  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 6732: 08-18 16:21:46.830  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 6733: 08-18 16:21:46.831  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 6734: 08-18 16:21:46.831  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 6735: 08-18 16:21:46.831  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 6736: 08-18 16:21:46.835  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 6737: 08-18 16:21:46.835  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 6738: 08-18 16:21:46.835  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 6739: 08-18 16:21:46.836  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 6740: 08-18 16:21:46.837  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce))
Line 6743: 08-18 16:21:46.837  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 6744: 08-18 16:21:46.837  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 6745: 08-18 16:21:46.838  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 6958: 08-18 16:21:47.439  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Sending event RespondPasswordVerifier
Line 6961: 08-18 16:21:47.440  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=RespondingPasswordVerifier(id=))), authZState=SigningIn(id=))
Line 6962: 08-18 16:21:47.440  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Starting execution
Line 6967: 08-18 16:21:47.451  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 6968: 08-18 16:21:47.452  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 6969: 08-18 16:21:47.452  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 6970: 08-18 16:21:47.453  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 6972: 08-18 16:21:47.454  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 6973: 08-18 16:21:47.455  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 6974: 08-18 16:21:47.455  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 6976: 08-18 16:21:47.455  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7142: 08-18 16:21:48.074  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Sending event ReceivedChallenge
Line 7143: 08-18 16:21:48.075  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7144: 08-18 16:21:48.076  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Starting execution
Line 7145: 08-18 16:21:48.076  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Sending event WaitForAnswer
Line 7146: 08-18 16:21:48.078  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=WaitingForAnswer(challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeGrxG2hBFS3W3j8Qj8Fa8MoAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAFLYijJRjujHrV-8Am0_EKeAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM2crQP_wpA1y_w_yaAgEQgDv95l1-TjG2H6gVeCtmNRSv7Lyn8GTvLXga3p44iSlZN_qhtC6985Jp-RzZKqbdrp09ufbuU5gbQlrYigIAAAAADAAAEAAAAAAAAAAAAAAAAAByWfPGdHlkQoQ2pXHE9LNH_____wAAAAEAAAAAAAAAAAAAAAEAAAEvjVW0fBn7e63zG7evKhKzVZrwWbroYrjcVCFIZLNvS0xBalRDtk-CWuieBu1ZxSMC3wU1VfIxMMVmA5NsrX5EEc_0vXMnb_l7pz1ocavxZEb9Qd3OK_ZoDwuRGrq1k_vL_B86nCX0lP1GglPJpvWPdb16-IKYLqLiCFtKb-OeSAu5j36dzr8geQ3_D1aUSOPHFdCQTcc3H_ehQK4xapBSk1S_7-Si6lMP6IoxO5c25a4kDAPEmjLsLj-JQ6XIKJTrPclMHsFQq74brIzZK33fTJKWJT4L9hxaFPOpNb1NV9uOLljZtYlcBxwgC-0CerK6Ag8wxiJqP71l83rOdA5vheF1SyvlHyyZ27pYLV0ZLmAbKKqG6HSENoyLJFFoyayT-puvf5hgimGRVHPHozgaIgSsNUisxOVM2KjJY8Zpng, parameters={challengeType=medium, phoneNumberSuffix=66, phoneNumberVerified=true}), hasNewResponse=false))), authZState=SigningIn(id=))
Line 7150: 08-18 16:21:48.083  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
Line 7151: 08-18 16:21:48.084  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=NotStarted(id=)), authZState=SigningIn(id=))
Line 7152: 08-18 16:21:48.084  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Starting execution
Line 7153: 08-18 16:21:48.084  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Sending event InitiateCustomSignInWithSRP
Line 7155: 08-18 16:21:48.086  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7156: 08-18 16:21:48.087  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Starting execution
Line 7157: 08-18 16:21:48.087  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Sending event InitiateSRPWithCustom
Line 7158: 08-18 16:21:48.088  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=InitiatingSRPA(id=))), authZState=SigningIn(id=))
Line 7159: 08-18 16:21:48.089  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Starting execution
Line 7161: 08-18 16:21:48.106  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7162: 08-18 16:21:48.106  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7163: 08-18 16:21:48.107  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7165: 08-18 16:21:48.110  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7166: 08-18 16:21:48.111  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7167: 08-18 16:21:48.112  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7168: 08-18 16:21:48.112  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7169: 08-18 16:21:48.112  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7170: 08-18 16:21:48.116  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7171: 08-18 16:21:48.116  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7173: 08-18 16:21:48.116  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7174: 08-18 16:21:48.118  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7175: 08-18 16:21:48.118  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce))
Line 7176: 08-18 16:21:48.119  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7177: 08-18 16:21:48.119  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7179: 08-18 16:21:48.119  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7233: 08-18 16:21:48.560  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Sending event RespondPasswordVerifier
Line 7234: 08-18 16:21:48.561  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=RespondingPasswordVerifier(id=))), authZState=SigningIn(id=))
Line 7235: 08-18 16:21:48.562  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Starting execution
Line 7242: 08-18 16:21:48.596  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7243: 08-18 16:21:48.596  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7244: 08-18 16:21:48.597  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7245: 08-18 16:21:48.600  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7246: 08-18 16:21:48.601  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7248: 08-18 16:21:48.602  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7249: 08-18 16:21:48.602  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7250: 08-18 16:21:48.603  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7340: 08-18 16:21:49.195  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Sending event ReceivedChallenge
Line 7342: 08-18 16:21:49.196  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7343: 08-18 16:21:49.196  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Starting execution
Line 7344: 08-18 16:21:49.196  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Sending event WaitForAnswer
Line 7345: 08-18 16:21:49.197  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=WaitingForAnswer(challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeOdrNI8gM4iuvpZW1tdtKcUAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAHpL2lv73lN3mxMj3fWWOt2AAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMivWzoEdDgQP2e6b-AgEQgDt3S6gCOo8Jtpqg5T9G8rkvomVuhW1lypYFfglN2ljTGxxTrQ_iMqaylqc0Su1JtWjVJ269sYMywbpdbwIAAAAADAAAEAAAAAAAAAAAAAAAAACKuKnX-YydASoMTeO_PdZD_____wAAAAEAAAAAAAAAAAAAAAEAAAEvnCUsl3GzCnch0_vqmfFXzDMfPtLGSB28h80bBLF8yQIkBUwb4eYAODuvjMgyc8sdpPeO4LWR9Ems43G3lQSBlYZ4Cl6tqI6AE0kbH-PfAdH3eMRpuZJmsGKFKSEcEWdrde7erfhma86AuSKcHcB5T6BkrASA7ReAdUxvis3MonooHU1bFwDxF6zIUtxsG-9SoBZ63TD5-42nuve7yDEIZeAmTUprlGh_LTZ9QHGiIq1NDgmrscogRkK0oSQxUgZE2HMUXyuBmiTui_0Tz5nsjy4QZPditoc2hxt46FD7Ma5bqUQD0IHCMKbiBl5sba1awJidvN40TewsIf6wP4QIupyQu6DJeCsY6nVOmjKd4L3M--T2wR0jVG2zJ-6P0s3WFEmG37QQC8xfvxLOjUugcvJ7GP10-yNgML6iA8YWXw, parameters={challengeType=medium, phoneNumberSuffix=66, phoneNumberVerified=true}), hasNewResponse=false))), authZState=SigningIn(id=))
Line 7347: 08-18 16:21:49.201  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
Line 7348: 08-18 16:21:49.203  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=NotStarted(id=)), authZState=SigningIn(id=))
Line 7349: 08-18 16:21:49.203  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Starting execution
Line 7350: 08-18 16:21:49.203  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Sending event InitiateCustomSignInWithSRP
Line 7351: 08-18 16:21:49.204  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7352: 08-18 16:21:49.204  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Starting execution
Line 7353: 08-18 16:21:49.204  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Sending event InitiateSRPWithCustom
Line 7355: 08-18 16:21:49.205  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=InitiatingSRPA(id=))), authZState=SigningIn(id=))
Line 7356: 08-18 16:21:49.205  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Starting execution
Line 7358: 08-18 16:21:49.221  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7359: 08-18 16:21:49.221  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7361: 08-18 16:21:49.222  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7362: 08-18 16:21:49.224  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7363: 08-18 16:21:49.225  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7364: 08-18 16:21:49.226  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7365: 08-18 16:21:49.226  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7366: 08-18 16:21:49.226  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7367: 08-18 16:21:49.230  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7369: 08-18 16:21:49.230  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7370: 08-18 16:21:49.230  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7371: 08-18 16:21:49.232  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7372: 08-18 16:21:49.233  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce))
Line 7373: 08-18 16:21:49.234  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7374: 08-18 16:21:49.234  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7375: 08-18 16:21:49.234  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7434: 08-18 16:21:49.680  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Sending event RespondPasswordVerifier
Line 7436: 08-18 16:21:49.681  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=RespondingPasswordVerifier(id=))), authZState=SigningIn(id=))
Line 7437: 08-18 16:21:49.682  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Starting execution
Line 7441: 08-18 16:21:49.705  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7442: 08-18 16:21:49.705  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7443: 08-18 16:21:49.705  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7451: 08-18 16:21:49.708  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7452: 08-18 16:21:49.709  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7453: 08-18 16:21:49.709  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7454: 08-18 16:21:49.710  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7455: 08-18 16:21:49.710  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7536: 08-18 16:21:50.307  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Sending event ReceivedChallenge
Line 7538: 08-18 16:21:50.310  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7540: 08-18 16:21:50.310  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Starting execution
Line 7541: 08-18 16:21:50.310  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Sending event WaitForAnswer
Line 7542: 08-18 16:21:50.311  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=WaitingForAnswer(challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeJ9Hokp5GoGZQPDcLGb8YUIAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAFlGOukuRvBDlK39gmq5zwkAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMKADYTQiNGbtpwKvOAgEQgDsWkCkGhLwcKRPbyfFGuRs12LlzJkQtziNSAMzUUTh9yBOAFxISmanDHyHAk-_5q45x5Gmzjx26EF4gHQIAAAAADAAAEAAAAAAAAAAAAAAAAACFlIrjbASXauS568lKNIUR_____wAAAAEAAAAAAAAAAAAAAAEAAAEvKaReTCgOFxKjymsM30zVHlrJQHrmsst-eSsL8p-LCfQ1owjcgfAU5-tgdkUzqw7sm_aQLUXRHqrsodyNhTJfOt0vw9Y2NE4orgvYLZLQQO6x0HCraZ4p-sW5NNvUw4l8onLFNd-I6sp6ffmeUgs6zjB6fEwHJsbjpVLvoFaGiw02e4--YXMpLVA1kP4ITuTIZWwuCP73R9TgrIgsRYTy_671YD63Zd53x3n-oRKuF9q8Qej12WaS_I16ZHlB4ecLv0OoKg6YsdxpVXvPwfiN8By4FWBtk0yGf0MlVYnb3BT72QpYnOqJvhfqogUdqCcBERw_835ca8gC1fhQoDeHW--hp2CIczrXdLqM_oM17xc8otrI4umxUFyKIWC4RHCQD3NLSxiim60QZ_uO2oBJLlSyXMayIUwqbiS5vBqTyA, parameters={challengeType=medium, phoneNumberSuffix=66, phoneNumberVerified=true}), hasNewResponse=false))), authZState=SigningIn(id=))
Line 7546: 08-18 16:21:50.316  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
Line 7547: 08-18 16:21:50.317  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=NotStarted(id=)), authZState=SigningIn(id=))
Line 7548: 08-18 16:21:50.317  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Starting execution
Line 7552: 08-18 16:21:50.318  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateSignInAction Sending event InitiateCustomSignInWithSRP
Line 7554: 08-18 16:21:50.319  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7556: 08-18 16:21:50.321  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Starting execution
Line 7557: 08-18 16:21:50.322  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StartCustomSRPAuth Sending event InitiateSRPWithCustom
Line 7559: 08-18 16:21:50.322  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=InitiatingSRPA(id=))), authZState=SigningIn(id=))
Line 7560: 08-18 16:21:50.323  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Starting execution
Line 7564: 08-18 16:21:50.349  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7565: 08-18 16:21:50.349  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7567: 08-18 16:21:50.350  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7569: 08-18 16:21:50.353  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7570: 08-18 16:21:50.353  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7571: 08-18 16:21:50.354  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7572: 08-18 16:21:50.354  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7573: 08-18 16:21:50.355  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7575: 08-18 16:21:50.360  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7576: 08-18 16:21:50.360  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7577: 08-18 16:21:50.360  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7578: 08-18 16:21:50.363  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7579: 08-18 16:21:50.363  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce))
Line 7580: 08-18 16:21:50.364  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7581: 08-18 16:21:50.364  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7582: 08-18 16:21:50.364  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7674: 08-18 16:21:50.954  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitSRPCustomAuth Sending event RespondPasswordVerifier
Line 7675: 08-18 16:21:50.955  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRPCustom(srpSignInState=RespondingPasswordVerifier(id=))), authZState=SigningIn(id=))
Line 7676: 08-18 16:21:50.956  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Starting execution
Line 7681: 08-18 16:21:50.983  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7682: 08-18 16:21:50.983  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7683: 08-18 16:21:50.984  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7684: 08-18 16:21:50.987  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7686: 08-18 16:21:50.989  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7687: 08-18 16:21:50.991  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7688: 08-18 16:21:50.991  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7689: 08-18 16:21:50.992  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7767: 08-18 16:21:51.560  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifyPasswordSRP Sending event ReceivedChallenge
Line 7768: 08-18 16:21:51.562  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=NotStarted(id=))), authZState=SigningIn(id=))
Line 7769: 08-18 16:21:51.563  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Starting execution
Line 7770: 08-18 16:21:51.563  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Sending event WaitForAnswer
Line 7773: 08-18 16:21:51.565  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=WaitingForAnswer(challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeIoTbyRgvdy8LlZ_nU6D6r4AHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAG71e3vftGPKYqipdgXJhxaAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMNen7qQsvAGamsxLCAgEQgDvuGzoJr4uXcFKmhQv-bhiN7EyNVeSSOxRtOXUH9hAAztW64XJw2yyQm08EBX9L9GlEUmSzSZTYni2e9QIAAAAADAAAEAAAAAAAAAAAAAAAAACTO7TfVVlMnQzGz96PfHKZ_____wAAAAEAAAAAAAAAAAAAAAEAAAEvIH2vbiuVMxsKOza6xvsiNDmAyeGs9l2PCURLwrIR3rBWsuVoYFw0Ea72XWI-MfSnCDozyYHXtmztj2W-21Zq-yCsFqLNupP2x1Vs1ztj_3b_tZXWFxP1EPtSA9-N60wEGI1nR9Um15jGHiGIFaflCkafpK5cYwMGcLJtnC8MPsOLbAL2i_mneG2uOARsB2hQ_bf1eTfQ6opTujvZPniCelNcYyQ6a4Xy-_mMD9rrE8QciVsdtdap84o8WCmsa3oNErPqCjva2wu8-G9WxJ5hVO8rDTBxL2DwPX2ChARoic0EAGUKOa_lyckG7MbISj4-g1PK1cw6Mv3u7VSKASMTkcH-byLPRxqvJKEp7Fu66PHCkqfMfGAHrmMRud2YOSO52Havdeqf3ubInlo3CYWt3df35f8nueyp_ZoSQnRh4A, parameters={challengeType=medium, phoneNumberSuffix=66, phoneNumberVerified=true}), hasNewResponse=false))), authZState=SigningIn(id=))
Line 7776: 08-18 16:21:51.569  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=Verifying(id=CUSTOM_CHALLENGE))), authZState=SigningIn(id=))
Line 7777: 08-18 16:21:51.570  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifySignInChallenge Starting execution
Line 7778: 08-18 16:21:51.571  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7779: 08-18 16:21:51.571  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7780: 08-18 16:21:51.572  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7784: 08-18 16:21:51.574  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7785: 08-18 16:21:51.575  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7786: 08-18 16:21:51.576  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7787: 08-18 16:21:51.576  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7788: 08-18 16:21:51.576  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7905: 08-18 16:21:52.234  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifySignInChallenge Sending event ReceivedChallenge
Line 7906: 08-18 16:21:52.236  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Starting execution
Line 7907: 08-18 16:21:52.236  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitResolveChallenge Sending event WaitForAnswer
Line 7909: 08-18 16:21:52.237  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=WaitingForAnswer(challenge=AuthChallenge(challengeName=CUSTOM_CHALLENGE, [email protected], session=AYABeD6kwrFXHY9qph8xq-evnBEAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOnVzLWVhc3QtMTo3NDU2MjM0Njc1NTU6a2V5L2IxNTVhZmNhLWJmMjktNGVlZC1hZmQ4LWE5ZTA5MzY1M2RiZQC4AQIBAHgDHnKSW2nDRJSDSLf55TGFyX5On_wV32whMfiMxuCEIAGOhbrtqJRXhNWtVfVmy-MmAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMkv8fvTZiehM2sVEeAgEQgDv9X1qgPG2u1WBX2Uq8WJzyeFn4MSFahNnUUJDzQ3IC3Xq-RMwtc5Q-rXTEw7D55cKYQ_SMgNjOKb5idAIAAAAADAAAEAAAAAAAAAAAAAAAAAB19tRZGuty1ZpaLFafjgM9_____wAAAAEAAAAAAAAAAAAAAAEAAAFM_RENZ0MvbejAw0o5AJXpAHwiuuGDEGfbN602i21TBe_4WIgkEIBjAvraPLuXwhuysZGmqgfs9dpkYUGnYNJCw0mzM-mPIP-dk26iE3JGlFfEANlx0bNm4Tx7u0q7hmQk6UiviM2bPBmPUfOvOiK3RvAyvK2mDROeDdku4-LWYvN8XJ7dZbclZaQCd2XfV2s80k3rDVBjvGIj1lRobF3hcEkgi_HKIPKmDLlUJRfpjT7Q6CdZG3tEEAy8BdlZxV4rragFqZ4lGCjF1eXP-9Pxm35ZktR9xv1mrRrmDJWezBwBu_EcSNBnzLPvrK3FZvqX0ZiyWsXcS7Eju4a4rK5FQpJWLMayPaH_elHz_-A_5hjvrrd2Wm6rCb1vYked2arf9TwE9JCPqW5VSG9UbgCjJoJAHkUQ4oX1bZ0B44sziW0kHd9G1_gVkYaGKV5V8S5L1JmMWYA_Ywwb5t17, parameters={challengeType=code}), hasNewResponse=true))), authZState=SigningIn(id=))
Line 7914: 08-18 16:21:52.242  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SigningIn(signInState=ResolvingChallenge(challengeState=Verifying(id=CUSTOM_CHALLENGE))), authZState=SigningIn(id=))
Line 7915: 08-18 16:21:52.242  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifySignInChallenge Starting execution
Line 7918: 08-18 16:21:52.244  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 7919: 08-18 16:21:52.244  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=)
Line 7920: 08-18 16:21:52.244  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution
Line 7924: 08-18 16:21:52.250  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation
Line 7925: 08-18 16:21:52.251  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=7a880af3-a18f-4b72-9a5e-0dc2025d4d7a:1692350064523))
Line 7926: 08-18 16:21:52.251  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 7927: 08-18 16:21:52.251  9805  9879 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 7928: 08-18 16:21:52.252  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 8072: 08-18 16:21:52.975  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: VerifySignInChallenge Sending event SignInCompleted
Line 8073: 08-18 16:21:52.976  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce), authZState=FetchingAuthSession(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=NotStarted(id=)))
Line 8074: 08-18 16:21:52.977  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitFetchAuthSession Starting execution
Line 8075: 08-18 16:21:52.978  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitFetchAuthSession Sending event FetchIdentity
Line 8076: 08-18 16:21:52.981  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce), authZState=FetchingAuthSession(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=FetchingIdentity(logins=CognitoUserPoolLogins(region=us-east-1, poolId=us-east-1_BjovNEF0I, idToken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))))
Line 8078: 08-18 16:21:52.982  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchIdentity Starting execution
Line 9716: 08-18 16:21:54.735  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchIdentity Sending event FetchAwsCredentials
Line 9717: 08-18 16:21:54.736  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce), authZState=FetchingAuthSession(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=FetchingAWSCredentials(identityId=us-east-1:d30692da-1c63-4e31-be0a-76d55751693e, logins=CognitoUserPoolLogins(region=us-east-1, poolId=us-east-1_BjovNEF0I, idToken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))))
Line 9718: 08-18 16:21:54.736  9805  9882 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchAWSCredentials Starting execution
Line 9831: 08-18 16:21:55.189  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchAWSCredentials Sending event Fetched
Line 9832: 08-18 16:21:55.189  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce), authZState=FetchingAuthSession(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=Fetched(id=)))
Line 9833: 08-18 16:21:55.189  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: NotifySessionEstablished Starting execution
Line 9834: 08-18 16:21:55.189  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: NotifySessionEstablished Sending event Fetched
Line 9835: 08-18 16:21:55.190  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce), authZState=StoringCredentials(amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = q2oN4***, sessionToken = IQoJb***, expiration = 1692354115))))
Line 9836: 08-18 16:21:55.190  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: PersistCredentials Starting execution
Line 9837: 08-18 16:21:55.191  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: StoringCredentials(id=)
Line 9838: 08-18 16:21:55.191  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 9839: 08-18 16:21:55.191  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StoreCredentials Starting execution
Line 9840: 08-18 16:21:55.195  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StoreCredentials Sending event CompletedOperation
Line 9841: 08-18 16:21:55.196  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=UserAndIdentityPool(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = q2oN4***, sessionToken = IQoJb***, expiration = 1692354115)))
Line 9842: 08-18 16:21:55.196  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution
Line 9843: 08-18 16:21:55.196  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState
Line 9844: 08-18 16:21:55.196  9805  9855 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=)
Line 9845: 08-18 16:21:55.197  9805  9885 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: PersistCredentials Sending event ReceivedCachedCredentials
Line 9846: 08-18 16:21:55.197  9805  9850 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@ec5c8ce), authZState=SessionEstablished(amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=548029d2-6c50-461f-850a-3bdb755315b7, [email protected], signedInDate=Fri Aug 18 16:21:52 GMT+07:00 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = q2oN4***, sessionToken = IQoJb***, expiration = 1692354115))))
08-18 16:21:55.198  9805  9805 D AmplifyAuthInterfaceImpl: requestMfaMedium: result: AuthSignInResult{isSignedIn=true, nextStep=AuthNextSignInStep{signInStep=DONE, additionalInfo={}, codeDeliveryDetails=null}}
08-18 16:21:55.198  9805  9892 E gralloc4: Empty SMPTE 2094-40 data
08-18 16:21:55.198  9805  9805 D LogInStepSequenceImpl: handleLogInWithCredentials logInStep: LogInStep$SubmitPhoneCode@4497dca, isClosedForSend: false
08-18 16:21:55.199  9805  9805 E BaseLoginViewModel: Log in step: SubmitPhoneCode
08-18 16:21:55.199  9805  9885 I AuthTokenManagerImpl$subscribeToAwsAuthEvents: Amplify Hub Auth Event: SIGNED_IN
08-18 16:21:55.199  9805  9805 E AmplifyAuthInterfaceImpl: handleException: null
08-18 16:21:55.199  9805  9882 I XxxxxxxxxxAuthModuleImpl$subscribeToAwsAuthEvents: AuthModule Amplify Hub Auth Event: SIGNED_IN
08-18 16:21:55.199  9805  9805 E AmplifyAuthInterfaceImpl: handleException: Auth state is an invalid state, cannot process the request.
08-18 16:21:55.199  9805  9805 D AmplifyAuthInterfaceImpl: Unknown exception: InvalidStateException{message=Auth state is an invalid state, cannot process the request., cause=null, recoverySuggestion=Operation performed is not a valid operation for the current auth state.}

amplifyconfiguration.json

{
  "UserAgent": "aws-amplify-cli/2.0",
  "Version": "1.0",
  "auth": {
    "plugins": {
      "awsCognitoAuthPlugin": {
        "UserAgent": "aws-amplify/cli",
        "Version": "0.1.0",
        "Auth": {
          "Default": {
            "authenticationFlowType": "CUSTOM_AUTH_WITH_SRP"
          }
        },
        "CredentialsProvider": {
          "CognitoIdentity": {
            "Default": {
              "PoolId": "us-east-1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
              "Region": "us-east-1"
            }
          }
        },
        "IdentityManager": {
          "Default": "default"
        },
        "CognitoUserPool": {
          "Default": {
            "AppClientSecret": "",
            "AppClientId": "xxxxxxxxxxxxxxxxxxxxxxx",
            "PoolId": "us-east-1_xxxxxxxx",
            "PinpointAppId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "Region": "us-east-1"
          }
        },
        "PinpointAnalytics": {
          "AppId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
          "Region": "us-east-1"
        },
        "AppSync": {
          "Default": {
            "ApiUrl": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com/graphql",
            "Region": "us-east-1",
            "AuthMode": "AMAZON_COGNITO_USER_POOLS"
          }
        }
      }
    }
  }
}

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

@mattcreaser mattcreaser added auth Related to the Auth category/plugins pending-triage Issue is pending triage labels Aug 21, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Aug 21, 2023

Hi @doanpt thank you so much for doing all the necessary pre-requisites before we could investigate. It really helped me understand your issue and what the potential problem could be.
When we do Custom_auth_with_srp the way it works is:

  1. You have to login via SRP using your username and password
  2. Once that is successful you will get the custom auth challenge which is in your case sending an MFA code. This is done via lambdas as demonstrated in our example code in Amplify documentation.

In your case what is happening is that even though custom_auth is invoked the lamdas are not sending the custom_auth challenge back to the app and instead the credentials are being returned. If credentials are returned the sign in flow finishes.

Please ensure your lambdas are working correctly (you can ensure that by debugging the DEFINE lambda to understand the incoming and outgoing requests a bit better).

I will leave this issue open for a week to see if this suggestion helped you. If you still need help please reach out with your lambda code and I can troubleshoot further.

@gpanshu gpanshu added pending-community-response Issue is pending response from the issue requestor and removed pending-triage Issue is pending triage labels Aug 21, 2023
@gpanshu gpanshu self-assigned this Aug 21, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Aug 22, 2023

As I re-read your issue I would like you to ensure 2 things:

  1. Please explicitly mention CUSTOM_AUTH_WITH_SRP as the authFlowType
  2. Please update the cognito backend to not allow regular SRP Screenshot of cognito

@doanpt
Copy link
Author

doanpt commented Aug 22, 2023

thanks for your reply
I will try your suggestion but I have questions:

  1. in my application, the user can optionally toggle MFA on or off, will disabling user spr auth have any effect?

  2. I want to inform more information, I can reproduce this issue simply with below step:

Precondition:
MFA config was enabled.
Step:

  1. in login screen, enter correct username and password,
  2. Press login button twice=> that mean signIn method will be call twice
  3. User will be navigate to verify MFA screen
  4. press back button to back to login screen
  5. Enter any username/password, can enter account that not exist on database
  6. press login button
  7. app receive token from aws and auth result with isSignedIn=true
  8. you can use that token to call api normally

From my steps. that wrong in step 2 but I think. if signIn method be called multiple times AWS should not return token and auth result...

@gpanshu gpanshu removed the pending-community-response Issue is pending response from the issue requestor label Aug 24, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Aug 24, 2023

If you toggle the SRP off and login via CUSTOM_AUTH_WITH_SRP it will ensure your lambdas are being called. This will have no consequence to your MFA toggled on/off. Please try the steps I have requested in your local machine to see if that solves your issue.

Also when I read your steps they are very APP dependent and not Amplify dependent (for example press back button and go back to login screen - need to understand what is going on here, are you calling signout when you go to that screen? what state is signin state machine at that point). Feel free to setup a call with me if the steps I suggested do not work here

@gpanshu gpanshu added the pending-community-response Issue is pending response from the issue requestor label Aug 24, 2023
@doanpt
Copy link
Author

doanpt commented Aug 25, 2023

hi,
Thank you for your comment, I will try your suggestion and update result ASAP but we need cowork with cloud team in my project. It's in different company, so it will take time.

I would like to add, in the step that I describe. I know maybe the app is wrong, but it's wrong for the app to be in the wrong state and the amplify or bankend team returns the token, that needs to be fixed for security.

@gpanshu
Copy link
Contributor

gpanshu commented Aug 25, 2023

Amplify Android team have checked the sign-in protocols and can confirm that the secondary sign is not allowed once a sign in is successfully performed. We advise that you check your backend lambdas to understand why you are being issues tokens when you have not satisfied your custom challenge. Once you have your custom lambdas and you need support please do not hesitate to contact us.

@doanpt
Copy link
Author

doanpt commented Aug 30, 2023

Thanks, I will contact with our cloud team to check that.

@gpanshu gpanshu removed their assignment Sep 6, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Oct 13, 2023

Closing due to inactivity. Please feel free to create a new issue if you are still experiencing issues.

@gpanshu gpanshu closed this as completed Oct 13, 2023
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Related to the Auth category/plugins pending-community-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

3 participants