If you are using GitLab.com (cloud), you do not need to create an OAuth application. Simply select the GitLab.com tab when connecting and WunderGraph Hub will use the default OAuth app.
Creating a GitLab OAuth Application
Step 1: Open Application Settings
You can create the OAuth application at either the user level or the group level:- User Application
- Group Application
- Sign in to your GitLab instance.
- In the top-right corner, click your avatar and select Edit profile.
- In the left sidebar, Access > click Applications.
Step 2: Create a New Application
Fill in the application form with the following values:| Field | Value |
|---|---|
| Name | WunderGraph Hub (or any name you prefer) |
| Redirect URI | https://hub-api.wundergraph.com/api/webhooks/gitlab-postinstall |
| Confidential | Enabled (checked) |
| Scopes | api, read_repository, write_repository |
Step 3: Save the Application
Click Save application. GitLab will display your:- Application ID — this is your Client ID
- Secret — this is your Client Secret
Step 4: Connect to WunderGraph Hub
Return to WunderGraph Hub:- Go to Settings > Integrations.
- Click Connect GitLab.
- Select the Self-Hosted tab.
- Enter your Instance URL, Application ID, and Secret.
- Click Connect.