You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added oobResponseAsState extension to process out-of-band authentication API responses.
Updated error handling for OOB and token responses, supporting OAuth2 and API errors.
Introduced polling context for OOB authentication flow.
@@ -64,6 +73,24 @@ val emptyResponseOkMockEngine = createMockEngine("", HttpStatusCode.OK)
64
73
65
74
val malformedJsonOkMockEngine = createMockEngine(MALFORMED_JSON, HttpStatusCode.OK)
66
75
76
+
val malformedJsonClientMockEngine = createMockEngine(MALFORMED_JSON_ERROR_CODE, HttpStatusCode.TooManyRequests)
77
+
67
78
val malformedJsonErrorMockEngine = createMockEngine(MALFORMED_JSON_ERROR, HttpStatusCode.BadRequest)
68
79
69
80
val malformedJsonErrorCodeMockEngine = createMockEngine(MALFORMED_JSON_ERROR_CODE, HttpStatusCode.BadRequest)
81
+
82
+
val oobAuthenticatePushResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_PUSH_RESPONSE_JSON, HttpStatusCode.OK)
83
+
84
+
val oobAuthenticateSmsResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_SMS_RESPONSE_JSON, HttpStatusCode.OK)
85
+
86
+
val oobAuthenticateVoiceResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_VOICE_RESPONSE_JSON, HttpStatusCode.OK)
87
+
88
+
val oobAuthenticateTransferResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_TRANSFER_RESPONSE_JSON, HttpStatusCode.OK)
89
+
90
+
val oobAuthenticateTransferNoBindingCodeResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_TRANSFER_NO_BINDING_CODE_RESPONSE_JSON, HttpStatusCode.OK)
91
+
92
+
val oobAuthenticateEmailResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_EMAIL_RESPONSE_JSON, HttpStatusCode.OK)
93
+
94
+
val oobAuthenticateInvalidBindingResponseMockEngine = createMockEngine(OOB_AUTHENTICATE_INVALID_BINDING_RESPONSE_JSON, HttpStatusCode.OK)
95
+
96
+
val oobAuthenticateOauth2ErrorMockEngine = createMockEngine(OOB_AUTHENTICATE_OAUTH2_ERROR_JSON, HttpStatusCode.BadRequest)
0 commit comments