Testing the Connect Widget
We offer guides to test the following:
- Member Connection Statuses with MX Bank
- Microdesposits
- OAuth in the Connect Widget with MXCU
- OAuth in WebViews
OAuth in WebViews
To test OAuth in the Connect Widget when it's embedded in a WebView, you must load the financial institution's OAuth window in the device's native browser and properly handle the results. This can be tested in the integrations environment with the MXCU (OAuth) institution (institution code mxcu_oauth).
- When you select MXCU (OAuth) from search or load Connect with the
current_institution_codeoption set tomxcu_oauth, the OAuth requested UI event message will be generated. Capture theurlfrom this payload. - Load the
urlin the device's native browser. - The user logs in and selects accounts.
- The user selects either Authorize or Deny.
- The browser is redirected back to MX.
- The redirect renders either success or error.
- Success is indicated by a
200 OKresponse code. - Error is indicated by a
400 Bad Requestresponse code. This includes cases where the user has declined/denied authorization. - If MX doesn't get a response back from the financial institution, then you won't get a response either. This can happen, for example, if the user closes the browser.
- Success is indicated by a