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

# How to register your own Railway OAuth app

> Register an OAuth app with Railway and connect it to Nango

This guide shows you how to register your own app with Railway to obtain your OAuth credentials (client ID & secret). These are required to let your users grant your app access to their Railway account.

**1. Create a Railway account**

If you don't already have one, sign up at [railway.com](https://railway.com/login). Only workspace admins can create OAuth apps; your personal workspace works.

**2. Create a new OAuth app**

1. Log in to [Railway](https://railway.com/login).
2. In the left sidebar, open **Settings** and click **Developer**.
3. Under **OAuth Apps**, click **New OAuth App** and enter a name for your app.

**3. Configure OAuth settings**

1. Keep **Application Type** set to **Web Application** (server-side, confidential).
2. Under **Redirect URIs**, add `https://api.nango.dev/oauth/callback`.
3. Click **Create OAuth App**.

**4. Choose your scopes**

Railway's app form has no scope list: scopes are requested when users authorize. Nango always requests `openid` and `offline_access`. Add the [scopes](https://docs.railway.com/integrations/oauth/scopes-and-user-consent) your integration needs on your integration in Nango, for example `email`, `profile` or `workspace:viewer`.

**5. Copy your credentials**

In the **Client Credentials** section, copy the **Client ID** and **Client Secret**. The client secret is shown only once. You'll need both when configuring your integration in Nango.

**6. Next**

Follow the [*Quickstart*](https://nango.dev/docs/getting-started/quickstart.md).

For more details on Railway's OAuth implementation, see [Railway's login and tokens documentation](https://docs.railway.com/integrations/oauth/login-and-tokens).

***


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