Skip to content

Commit

Permalink
Cancel password retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-YuXin committed Feb 25, 2025
1 parent 9c3159c commit b0ec77a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth

// User Case 1.2.9. Sign In - User email is registered with email OTP auth method, which is not supported by the developer (aka redirect flow)
func test_signInWithOTPInsufficientChallengeResultsInError() async throws {
guard let sut = initialisePublicClientApplication(challengeTypes: [.password]), let username = retrieveUsernameForSignInCode(), let password = await retrievePasswordForSignInUsername() else {
guard let sut = initialisePublicClientApplication(challengeTypes: [.password]), let username = retrieveUsernameForSignInCode() else {
XCTFail("Missing information")
return
}
Expand All @@ -248,7 +248,7 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth
let signInDelegateSpy = SignInPasswordStartDelegateSpy(expectation: signInExpectation)

let signInParam = MSALNativeAuthSignInParameters(username: username)
signInParam.password = password
signInParam.password = "testpassword"
signInParam.correlationId = correlationId

sut.signIn(parameters: signInParam, delegate: signInDelegateSpy)
Expand Down

0 comments on commit b0ec77a

Please sign in to comment.