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

# GitLab

> Set up GitLab OAuth for Consumer Authentication.

## Setup

*Follow these steps if you have not created a Gitlab OAuth client yet.*

1. Navigate to [Gitlab OAuth Applications](https://gitlab.com/-/profile/applications). For more information, check out GitLab's **Creating an OAuth App** guide [here](https://docs.gitlab.com/ee/integration/oauth%5Fprovider.html).
2. Create a **New Application** with the name, redirect uri, and desired scopes. You must include the openid, email, and profile scopes.
3. Copy-paste the Redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) into the **Redirect URI** field. Fill in remaining fields how you see fit.

***

*Follow these steps if you already have an existing Gitlab OAuth client.*

1. Navigate to [Gitlab OAuth Applications](https://gitlab.com/-/profile/applications).
2. Click on the application you'd like to use and press edit.
3. Copy-paste the Redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) into the **Redirect URL**. Under Scopes, make sure openid, email, and profile are selected.
