# GitLab

To set up an OAuth App navigate to <https://gitlab.com/-/profile/applications> and click on "Add new application"

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FneSyRTxvxpC9w8tix2YG%2FScreenshot%202024-09-19%20at%2015.34.22.jpg?alt=media&#x26;token=8e84000c-6020-4712-abf6-dafc55108857" alt=""><figcaption></figcaption></figure>

You then fill in the following:

* **Name**: The name of your application
* **Redirect URI**: The callback URL from the Auth Provider dialog
* **Scopes**: `read_user` needs to be enabled but you can choose more if you want to use the GitLab API from your application backend.

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FS745HQRAyql7YFpkkEZI%2FScreenshot%202024-09-19%20at%2015.35.27.jpg?alt=media&#x26;token=081e28ee-15ad-42f4-897c-00c8e0297ac3" alt=""><figcaption></figcaption></figure>

After confirming, you can copy the *Application ID* and *Secret* in to the *Client ID* and *Client Secret* fields in the Auth Provider dialog and save.

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FyZKmu2XwKOkthU219AGW%2FScreenshot%202024-09-19%20at%2015.35.58.jpg?alt=media&#x26;token=56fec698-9426-4e3d-9b7c-10c6c27482af" alt=""><figcaption></figcaption></figure>
