Skip to content

Commit 1383637

Browse files
haverchuckNoyes
andauthored
adds custom challenge for first method overload of confirmSignIn (#2316)
Co-authored-by: Noyes <[email protected]>
1 parent c6a24e9 commit 1383637

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

aws-android-sdk-mobile-client/src/main/java/com/amazonaws/mobile/client/AWSMobileClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,14 @@ public void run() {
13251325
detectedContinuation = signInChallengeContinuation;
13261326
signInCallback = new InternalCallback<SignInResult>(callback);
13271327
break;
1328+
case CUSTOM_CHALLENGE:
1329+
signInChallengeContinuation.setChallengeResponse("ANSWER", signInChallengeResponse);
1330+
detectedContinuation = signInChallengeContinuation;
1331+
signInCallback = new InternalCallback<SignInResult>(callback);
1332+
if (clientMetadata != null) {
1333+
signInChallengeContinuation.setClientMetaData(clientMetadata);
1334+
}
1335+
break;
13281336
case DONE:
13291337
callback.onError(new IllegalStateException("confirmSignIn called after signIn has succeeded"));
13301338
return;

0 commit comments

Comments
 (0)