> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing OAuth with MXCU

Use the MXCU (OAuth) test institution (institution code: `mxcu_oauth`) to test OAuth flows in the integration environment.

<Info>
  **INFO**

  In the integration environment, a `user` can only have one OAuth `member`.
</Info>

1. Select **MXCU (OAuth)** from search, or load the Connect Widget via `current_institution_code: "mxcu_oauth"`. You'll see the following screen before redirecting to the OAuth provider.

<img src="https://mintcdn.com/mx-7a01b258/Yq4VugKtWQ2Hv6ij/resources/test-platform/assets/mxcu.svg?fit=max&auto=format&n=Yq4VugKtWQ2Hv6ij&q=85&s=e73999ae252a4877f118b217d30beac8" alt="Screenshot of OAuth connection screen where you select continue." width="424" height="347" data-path="resources/test-platform/assets/mxcu.svg" />

2. Sign in at the test OAuth provider using these credentials:
   * Username: `mxtest`
   * Password: `testpassword`
3. That will take you to the authorization page. From here, you can choose which accounts to authorize:
   * Select **Authorize** to simulate a successful authorization.
   * Select **Deny** to simulate an error or denied authorization.

<Warning>
  **WARNING**

  While the MXCU (OAuth) test institution lets you choose which accounts to authorize, this behavior can vary between real institutions.
</Warning>

<img src="https://mintcdn.com/mx-7a01b258/Yq4VugKtWQ2Hv6ij/resources/test-platform/assets/mxcu-authorize.svg?fit=max&auto=format&n=Yq4VugKtWQ2Hv6ij&q=85&s=911a0fa0d0baa0a7efe3f8538e375f95" alt="Screenshot of oauth connection screen for authorization." width="474" height="330" data-path="resources/test-platform/assets/mxcu-authorize.svg" />
