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

fix(auth): Fix passwordless tests #2956

Merged
merged 12 commits into from
Nov 26, 2024
Prev Previous commit
Next Next commit
fixed confirmSignIn when secondary challenge
  • Loading branch information
Edison Zhang committed Nov 25, 2024
commit 5b9200f0b2214aafdb6d4aad275084f3550f7b84
Original file line number Diff line number Diff line change
@@ -295,7 +295,7 @@ object ConfirmSignInTestCaseGenerator : SerializableProvider {
),
validations = listOf(
mockedConfirmSignInSuccessWithChallengeExpectation,
ExpectationShapes.State("SigningIn_SigningIn.json")
ExpectationShapes.State("SigningIn_CustomChallenge.json")
)
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"type": "AuthState.Configured",
"AuthenticationState": {
"type": "AuthenticationState.SigningIn",
"SignInState": {
"type": "SignInState.ResolvingChallenge",
"SignInChallengeState": {
"type": "SignInChallengeState.WaitingForAnswer",
"authChallenge": {
"challengeName": "CUSTOM_CHALLENGE",
"username": "username",
"session": "someSession",
"parameters": {
"SALT": "abc",
"SECRET_BLOCK": "secretBlock",
"SRP_B": "def"
}
}
}
}
},
"AuthorizationState": {
"type": "AuthorizationState.SigningIn"
},
"SignUpState": {
"type": "SignUpState.NotStarted"
}
}
Original file line number Diff line number Diff line change
@@ -25,8 +25,7 @@
"params": {
"challengeResponse": "000000"
},
"options": {
}
"options": {}
},
"validations": [
{
@@ -47,7 +46,7 @@
},
{
"type": "state",
"expectedState": "SigningIn_SigningIn.json"
"expectedState": "SigningIn_CustomChallenge.json"
}
]
}