Authentication
The plugin requires authentication to access the GitLab API. You can sign in with OAuth2 (GitLab SaaS only) or with a personal access token (any instance).
OAuth2 (GitLab SaaS)
- When prompted to authenticate, your default browser opens a GitLab authorization page.
- Log in to your GitLab account (if not already logged in) and authorize the plugin.
- Close the browser tab and return to the IDE — the credentials are stored automatically.
The plugin automatically refreshes your OAuth2 token in the background. If the refresh fails, you will be prompted to re-authenticate.
Completing Authorization Manually
If the local callback cannot be reached (for example, it is blocked by a firewall, or you are signing in on a different machine), select Retrieve Auth Code Manually when prompted. The plugin then guides you through the following steps:
- The authorization link is copied to your clipboard. Paste it into any browser.
- Sign in and authorize the plugin.
- The browser redirects to a
localhostpage that shows an error — this is expected. - Copy the entire URL from the browser's address bar and paste it back into the plugin.
Personal Access Token
A personal access token is the only method for self-managed instances, and an alternative to OAuth2 on GitLab SaaS.
- In GitLab, open Edit profile → Access → Personal access tokens.
- Create a token with the api scope.
- Copy the generated token.
- When the plugin prompts for authentication, paste the token.
Changing Account
To switch to a different GitLab account or change the authentication method, use the Change Account action in the GitLab Merge Requests tool window toolbar. Changing the method removes the credentials stored for the previous one, so every project in this IDE that shares the account switches as well.
Default Account
Check Use this account for other projects by default when logging in to reuse these credentials in every project in this IDE that connects to the same GitLab instance and has no account of its own. Otherwise, the account belongs to this project in this IDE only: opening the project in another IDE asks you to sign in again.
Credential Storage
All credentials are stored securely in the IDE's built-in credential store (Settings | Appearance & Behavior | System Settings | Passwords). No passwords or tokens are stored in plain text or in project files.
Each IDE keeps its own credentials, so signing in, changing the account, or signing out in one IDE doesn't affect another.