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

# Configure sign-in providers for MCP endpoints

> Configure Raily-hosted sign-in or an OIDC provider, test the connection, and attach it to a Raily MCP endpoint.

Every MCP endpoint needs a sign-in provider. Use Raily-hosted sign-in to grant access by email and choose each person's endpoints in Raily. Connect your own OpenID Connect provider when your organization manages access in Google, Microsoft Entra ID, Auth0, Okta, Keycloak, or another OIDC provider.

Manage providers under **Security → Access → Sign-in providers**.

## Before you begin

You need a paid plan and permission to manage sign-in providers in the selected Organization. Account Owners and Administrators have this permission. A role assigned in a parent Organization also applies in its descendants.

For an external provider, you also need permission to create or edit an OIDC web application. Raily shows provider-specific setup instructions. The redirect URI is generated after you attach the provider to an endpoint.

> [!NOTE]
>
> Raily-hosted sign-in does not need external credentials. You manage its users and endpoint grants in Raily.

## Choose a provider

| Provider | Use it when | Configuration you need |
| - | - | - |
| **Raily-hosted** | You want to add people by email and grant endpoints in Raily. | No external credentials. Each Organization can have one Raily-hosted sign-in. |
| **Google** | Your organization admits users through Google. | A Google OAuth client. You can enter its client ID and secret or upload its credentials JSON file. |
| **Microsoft Entra ID (Azure AD)** | Your organization uses a Microsoft Entra directory. | The tenant ID, client ID, and client secret. Use a single-tenant issuer. |
| **Auth0** | Your organization uses an Auth0 tenant. | The tenant issuer URL, client ID, and client secret. Keep the trailing slash in the issuer URL. |
| **Okta** | Your organization uses an Okta organization or custom authorization server. | The issuer URL, client ID, and client secret. Include the authorization server path when you use one. |
| **Keycloak** | Your organization uses a Keycloak realm. | The realm issuer URL, client ID, and client secret. Use the realm URL, not the admin console URL. |
| **Custom** | Your organization uses another OpenID Connect provider. | The issuer URL, client ID, and client secret. The provider must support the authorization code flow with client secret authentication. |

## Set up Raily-hosted sign-in

Raily creates a hosted sign-in when it creates a new Organization. If the selected Organization does not have one, the provider list shows **Set up Raily sign-in**.

**1. Open Sign-in providers**

Go to **Security → Access → Sign-in providers**. If the selected Organization does not have a hosted provider, the setup banner appears above the provider list.

![The Sign-in providers page with the Set up Raily sign-in banner](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-09-setup-raily-signin.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=562bbc731322f827f02793cb8e3c0cf7)

**2. Set up Raily sign-in**

Select **Set up Raily sign-in** and wait for **Raily sign-in** to appear as **Verified** and **Active**.

![The provider list after Raily sign-in has been set up, showing Verified and Active status](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-10-raily-signin-created.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=360eb5303d482cdd8a03629bb54d5a43)

You can now attach this sign-in to an endpoint and [grant people access by email](https://docs.raily.ai/features/users.md).

## Configure an external OIDC provider

Keep Raily and your identity provider open while you work. The wizard shows how to create the OIDC application and where to find its client ID and client secret. You will add the endpoint-specific redirect URI after you attach the provider in Raily.

**1. Open the provider wizard**

Go to **Security → Access → Sign-in providers**, then select **Configure OAuth Provider**.

![The Sign-in providers page with the Configure OAuth Provider button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/01-sign-in-providers-configure-oauth.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=65ff9bbb6573610d436cf3bafd1202c0)

**2. Name the configuration**

Open **Provider** and choose your identity provider. If yours is not listed, choose **Custom**, the last option, to connect any other OpenID Connect provider.

![The provider picker with Raily, Google, Azure AD, Auth0, Okta, and Keycloak](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/02-provider-picker-all-types.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=7bd0bd6995610e6d45f6614cb1bdec00)

Enter an **OAuth Client Name**, then select **Continue**. The name only identifies this configuration in Raily.

![Basic Information with Google selected, an OAuth client name, and the Continue button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/03-google-basic-information.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=47038be6cc57d89005d2f5fcea8056b9)

**3. Enter the provider credentials**

Follow the setup instructions shown for your provider. They list the application type and the values to enter in your provider.

![Google OAuth setup instructions with the consent screen and OAuth client application settings](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/04-google-provider-setup-instructions.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=2d1e2b934655518c8f6a8e466a7dddd5)

Enter the **Issuer URL**, **Client ID**, and **Client Secret**.

For Google, you can upload the credentials JSON file from Google Cloud Console instead. For Microsoft Entra ID, enter your directory's **Tenant ID**. Do not use `common`, `organizations`, or `consumers` because Raily cannot verify their placeholder issuer.

For **Custom**, the issuer is the URL your provider serves `/.well-known/openid-configuration` from. **Discover Config** fills in the value the provider declares.

Raily does not save the client secret in your browser while you work through the wizard. If you leave the wizard and come back, enter the **Client Secret** again.

![Google provider credentials with the issuer URL, client ID, client secret, and Discover Config button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/05-google-credentials-example.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=965ff7e85c678f3296e0d0c940f5df0d)

**4. Discover the OpenID configuration**

Select **Discover Config**. Raily reads the provider's OpenID configuration and fills in its authorization and token endpoints. Review the issuer if Raily updates its spelling, then select **Continue**.

![Verify and Save showing the issuer, authorization endpoint, token endpoint, and a successful configuration discovery](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/06-discovered-openid-configuration.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=32ca1fe136ae664e9960b8f762b8ea07)

**5. Review the connection test and save**

Raily tests the client credentials automatically when you continue. Confirm that **Verify & Save** says **Connected** and that the issuer and endpoints are correct.

![Verify and Save showing a successful Connected test for a Google provider](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/07-verify-save-connected.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=beae26a25160ae4ed04b802bddd67fa4)

Select **Save**.

The provider now appears as **Verified** and **Active**. Open its row menu and select **Test Connection** whenever you need to test it again.

![A verified and active Google provider with its row menu open, showing Test Connection](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/08-google-provider-verified-active.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=b11861ec9b6040a8080107d370e79b07)

## Attach the provider to an endpoint

Adding a provider does not change any endpoint until you attach it.

1. When you create an endpoint, choose the provider under **Who can connect**. To change an existing endpoint, open it and choose the provider under **Security → Sign-in provider**.
2. Select **Create Server** or **Save Changes**.

> [!NOTE]
>
> For an external provider, the endpoint page shows **1 step to go live** with the endpoint's redirect URL. Copy it, add it to the allowed callback URLs of the OIDC application in your provider, then select **I've added it** to mark the step done. Each endpoint has its own redirect URL. Raily-hosted sign-in does not need this step.

On an endpoint that uses Raily-hosted sign-in, you can also choose who may start using it: only people you invite, or anyone who signs up. See [Open sign-up](https://docs.raily.ai/features/access.md#open-sign-up).

![An endpoint page with Google Provider selected and the Redirect URI to register](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/09-endpoint-settings-who-can-connect-redirect-uri.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=e85d621da429170bd3f648f8524bd571)

People must sign in through the attached provider before they can search. Every endpoint needs a provider. Raily does not offer an open endpoint without authentication.

## Next steps

> [card] [Access control](https://docs.raily.ai/features/access.md)
>
> Choose between user grants, external sign-in, and API keys

> [card] [Add and manage users](https://docs.raily.ai/features/users.md)
>
> Grant endpoints through Raily-hosted sign-in


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.