Create the GitLab application behind “Sign in with GitLab” and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.
One GitLab application covers two things in Kodus:
Sign in with GitLab on the sign-in page.
Install Gitlab app on the Connect your Git tool step, or Go to OAuth on the OAuth tab when you connect GitLab on Repositories. Both connect GitLab for code review with OAuth.
Skip this page if users sign in with email and connect GitLab with a personal or group access token. A token connection needs no OAuth app.
Prerequisites
WEB_DOMAIN: Your Frontend URL (e.g., https://app.yourdomain.com or http://localhost:3000)
The first completes Sign in with GitLab. The second returns from GitLab after you connect GitLab with OAuth. Make sure they match your actual web domain and scheme (http/https).
Step 3: Configure Scopes
Select these scopes:
api
read_user
read_repository
Each flow requests its own scopes:
Sign in with GitLab requests read_user only.
Install Gitlab app and Go to OAuth request the scopes in WEB_GITLAB_SCOPES (Step 4).
Kody needs api to post review comments and to create, edit and remove webhooks. read_api can read but cannot post.
.env.schema defaults WEB_GITLAB_SCOPES to read_api read_user read_repository. A connection made with that value can read your repositories but cannot post comments or manage webhooks. Set the value shown in Step 4.
Step 4: Add Credentials to .env
Copy the Application ID and Secret from GitLab. Both values go in two pairs of variables, because the web app and the API each read their own:
# Sign in with GitLabWEB_OAUTH_GITLAB_CLIENT_ID="your_application_id_here"WEB_OAUTH_GITLAB_CLIENT_SECRET="your_secret_here"# Connect GitLab with OAuthGLOBAL_GITLAB_CLIENT_ID="your_application_id_here"GLOBAL_GITLAB_CLIENT_SECRET="your_secret_here"GLOBAL_GITLAB_REDIRECT_URL="WEB_DOMAIN/setup/gitlab"WEB_GITLAB_SCOPES="api read_user read_repository"WEB_GITLAB_OAUTH_URL="https://gitlab.com/oauth/authorize"API_GITLAB_TOKEN_URL="https://gitlab.com/oauth/token"
For self-managed GitLab, replace the host in WEB_GITLAB_OAUTH_URL and API_GITLAB_TOKEN_URL with your instance domain (e.g., https://gitlab.yourdomain.com/oauth/authorize and https://gitlab.yourdomain.com/oauth/token).If you only use one of the two, set only its variables.Restart the web application and the API to apply the changes.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Kodus","colors":{"primary":"#F8B76D","light":"#F8B76D","dark":"#443024"},"logo":{"light":"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/logo/light.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=f936e2273166bb149af32c25f012a088","dark":"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/logo/dark.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=25fb99797bf5f026442124edd13ca06c","href":"https://kodus.io"},"favicon":"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/favicon.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=20fa3480d131c22d3c2f971dec149d41","background":{"color":{"dark":"#101019"}},"navbar":{"links":[{"href":"https://discord.gg/TFZBRk9fT6","label":"Community"},{"href":"https://github.com/kodustech","label":"Github"}],"primary":{"type":"button","label":"Try Kodus","href":"https://kodus.io/"}},"footer":{"socials":{"twitter":"https://twitter.com/kodustech","github":"https://github.com/kodustech","linkedin":"https://www.linkedin.com/company/kodustech"}},"integrations":{"gtm":{"tagId":"GTM-5MWMVQDC"},"posthog":{"apiKey":"phc_eXdASBHYhvHzYCLktmceTdRKmF3jMLnrH4iCXXUGjJI"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en/how_to_use/overview"},{"language":"es","href":"es/how_to_use/overview"},{"language":"pt-BR","href":"pt-BR/how_to_use/overview"},{"language":"ja","href":"ja/how_to_use/overview"},{"language":"zh","href":"zh/how_to_use/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kodus","hasAudioNarration":false,"actualSubdomain":"kodus","customDomains":["docs.kodus.io"],"gitSource":{"type":"github","owner":"kodustech","repo":"kodus-ai","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6b05e6680ba55d0577ca191e","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"en","tag":"How to use","count":77},{"language":"es","tag":"Cómo usar","count":77},{"language":"ja","tag":"使い方","count":77},{"language":"pt-BR","tag":"Como usar","count":77},{"language":"zh","tag":"如何使用","count":77},{"language":"en","tag":"AI Code Review","count":30},{"language":"es","tag":"Revisión de Código con IA","count":30},{"language":"ja","tag":"AIコードレビュー","count":30},{"language":"pt-BR","tag":"Revisão de código com IA","count":30},{"language":"zh","tag":"AI 代码审查","count":30},{"language":"en","tag":"Knowledge Base","count":23},{"language":"es","tag":"Base de Conocimiento","count":23},{"language":"ja","tag":"ナレッジベース","count":23},{"language":"pt-BR","tag":"Base de Conhecimento","count":23},{"language":"zh","tag":"知识库","count":23},{"language":"en","tag":"How to deploy","count":20},{"language":"es","tag":"Cómo desplegar","count":20},{"language":"ja","tag":"デプロイ方法","count":20},{"language":"pt-BR","tag":"Como implantar","count":20},{"language":"zh","tag":"如何部署","count":20},{"language":"en","tag":"Cookbook","count":18},{"language":"es","tag":"Recetario","count":18},{"language":"ja","tag":"クックブック","count":18},{"language":"pt-BR","tag":"Cookbook","count":18},{"language":"zh","tag":"食谱","count":18},{"language":"en","tag":"Cockpit","count":15},{"language":"es","tag":"Cockpit","count":15},{"language":"ja","tag":"コックピット","count":15},{"language":"pt-BR","tag":"Cockpit","count":15},{"language":"zh","tag":"驾驶舱","count":15},{"language":"en","tag":"Advanced Configs","count":14},{"language":"es","tag":"Configuraciones Avanzadas","count":14},{"language":"ja","tag":"詳細設定","count":14},{"language":"pt-BR","tag":"Configurações avançadas","count":14},{"language":"zh","tag":"高级配置","count":14},{"language":"en","tag":"Metrics","count":9},{"language":"es","tag":"Métricas","count":9},{"language":"ja","tag":"メトリクス","count":9},{"language":"pt-BR","tag":"Métricas","count":9},{"language":"zh","tag":"指标","count":9},{"language":"en","tag":"LLM Provider Setup","count":8},{"language":"en","tag":"Git providers configuration","count":8},{"language":"es","tag":"Configuración de Proveedor LLM","count":8},{"language":"es","tag":"Configuración de Proveedores Git","count":8},{"language":"ja","tag":"LLM プロバイダー設定","count":8},{"language":"ja","tag":"Gitプロバイダーの設定","count":8},{"language":"pt-BR","tag":"Configuração de Provedor LLM","count":8},{"language":"pt-BR","tag":"Configuração de Provedores Git","count":8},{"language":"zh","tag":"LLM 提供商配置","count":8},{"language":"zh","tag":"Git 提供商配置","count":8},{"language":"default","tag":"Changelog","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content:has(>.kodus-feature-badges:first-child){margin-top:0.875rem}.kodus-feature-badges{--badge-detail-bg: #fffdfa;--badge-detail-fg: #332b25;--badge-detail-border: #e3d8cd;position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem;margin-bottom:1.625rem}.dark .kodus-feature-badges{--badge-detail-bg: #21212c;--badge-detail-fg: #efebe6;--badge-detail-border: #3b3540}.kodus-feature-badges button{padding:0.125rem 0;border-radius:0.5rem;cursor:pointer}.kodus-feature-badges button:focus-visible{outline:2px solid #d58a48;outline-offset:2px}:root:not(.dark) .kodus-feature-badges button>[data-shape]{--color-text: #604631}.kodus-feature-badge-detail{position:absolute;z-index:2;inset-inline-start:0;inset-block-start:100%;width:min(100%, 22rem);padding:0.75rem 0.875rem;border:1px solid var(--badge-detail-border);border-radius:0.625rem;background:var(--badge-detail-bg);color:var(--badge-detail-fg);box-shadow:0 0.5rem 1.5rem rgb(0 0 0 / 14%);font-size:0.875rem;line-height:1.45;overflow-wrap:anywhere}.kodus-feature-badge-detail[hidden]{display:none}#content-area:has(.kodus-changelog-release) #header .eyebrow{display:none}body:has(.kodus-changelog-release) div.ml-4.flex.text-sm.leading-6.whitespace-nowrap.min-w-0.space-x-3.overflow-hidden{display:none}body:has(.kodus-changelog-release) #content-side-layout,body:has(.kodus-changelog-release) #table-of-contents-layout,body:has(.kodus-changelog-release) #table-of-contents{display:none!important}body:has(.kodus-changelog-release) #content-container{max-width:none!important;padding-right:24rem!important}body:has(.kodus-changelog-release) #content-area{width:100%!important;max-width:54rem!important;margin-right:auto!important;margin-left:0!important}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]{position:relative;color:#faf8f6!important}body:has(.kodus-changelog-release) header a[href*=\"changelog\"] *,body:has(.kodus-changelog-release) header a[href*=\"changelog\"] svg{color:#faf8f6!important;stroke:currentColor}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]::after{content:\"\";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#f8b76d}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]:hover,header a[href*=\"changelog\"]:hover{color:#f8b76d!important}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]:hover *,body:has(.kodus-changelog-release) header a[href*=\"changelog\"]:hover svg,header a[href*=\"changelog\"]:hover *,header a[href*=\"changelog\"]:hover svg{color:#f8b76d!important;stroke:currentColor}.kodus-changelog-release{display:grid;grid-template-columns:minmax(6.5rem, 8rem) minmax(0, 36rem);column-gap:1.75rem;align-items:start;margin-top:2.5rem;padding-top:2rem;border-top:1px solid rgba(248, 183, 109, 0.18)}.kodus-changelog-release[hidden]{display:none!important}.kodus-changelog-meta{position:sticky;top:8.5rem;align-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:0.65rem}.kodus-changelog-date{color:inherit;font:inherit;font-weight:600;line-height:inherit}.kodus-changelog-rss-source{display:none}.kodus-changelog-content{min-width:0;max-width:36rem}.kodus-changelog-shell{position:relative}.kodus-changelog-filter-panel{margin-top:0}.kodus-changelog-filter-control{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;appearance:none;border:1px solid transparent;border-radius:inherit;background:transparent;cursor:pointer}.kodus-changelog-filter-sidebar{position:fixed;top:12rem;right:max(2rem, calc((100vw - 88rem) / 2 + 2rem));width:20rem;z-index:9999;pointer-events:auto}.kodus-changelog-filter-heading{margin:0 0 0.7rem;color:#faf8f6;font:inherit;font-size:0.78em;font-weight:600;line-height:1.2}.kodus-changelog-filter-options{display:flex;flex-wrap:wrap;gap:0.55rem}.kodus-changelog-filter-button{position:relative;display:inline-flex;align-items:center;min-height:1.85rem;border:0;border-radius:999px;background:rgba(255, 255, 255, 0.06);color:inherit;cursor:pointer;padding:0.24rem 0.78rem;font:inherit;font-size:0.78em;font-weight:500;line-height:1;white-space:nowrap;user-select:none;overflow:hidden;transition:background-color 140ms ease,\n color 140ms ease}.kodus-changelog-filter-button span{position:relative;z-index:2;pointer-events:none}.kodus-changelog-filter-button:hover .kodus-changelog-filter-control:not(:checked){background:rgba(248, 183, 109, 0.12)}.kodus-changelog-filter-button:hover span{color:#f8b76d}.kodus-changelog-filter-button.is-selected,.kodus-changelog-filter-button:has(.kodus-changelog-filter-control:checked){border-color:rgba(248, 183, 109, 0.22)!important;background:rgba(248, 183, 109, 0.14)!important;color:#f8b76d!important}.kodus-changelog-filter-control:checked{border-color:rgba(248, 183, 109, 0.22)!important;background:rgba(248, 183, 109, 0.14)!important}.kodus-changelog-filter-control:checked+span{color:#f8b76d!important}.kodus-changelog-shell:has(.kodus-changelog-filter-control:checked) .kodus-changelog-filterable,.kodus-changelog-shell:has(.kodus-changelog-filter-control:checked) .kodus-changelog-section{display:none}.kodus-changelog-shell:has(.kodus-changelog-filter-control:checked) .kodus-changelog-release{display:none}.kodus-changelog-shell:has(#kodus-filter-security:checked) .filter-security,.kodus-changelog-shell:has(#kodus-filter-cockpit:checked) .filter-cockpit,.kodus-changelog-shell:has(#kodus-filter-byok:checked) .filter-byok,.kodus-changelog-shell:has(#kodus-filter-ai-engine:checked) .filter-ai-engine,.kodus-changelog-shell:has(#kodus-filter-self-hosted:checked) .filter-self-hosted,.kodus-changelog-shell:has(#kodus-filter-git-provider:checked) .filter-git-provider,.kodus-changelog-shell:has(#kodus-filter-performance:checked) .filter-performance,.kodus-changelog-shell:has(#kodus-filter-ux-interface:checked) .filter-ux-interface,.kodus-changelog-shell:has(#kodus-filter-notifications:checked) .filter-notifications,.kodus-changelog-shell:has(#kodus-filter-kody-rules:checked) .filter-kody-rules,.kodus-changelog-shell:has(#kodus-filter-mcp:checked) .filter-mcp,.kodus-changelog-shell:has(#kodus-filter-custom-agents:checked) .filter-custom-agents,.kodus-changelog-shell:has(#kodus-filter-billing-licenses:checked) .filter-billing-licenses,.kodus-changelog-shell:has(#kodus-filter-cli:checked) .filter-cli,.kodus-changelog-shell:has(#kodus-filter-security:checked) .kodus-changelog-section:has(.filter-security),.kodus-changelog-shell:has(#kodus-filter-cockpit:checked) .kodus-changelog-section:has(.filter-cockpit),.kodus-changelog-shell:has(#kodus-filter-byok:checked) .kodus-changelog-section:has(.filter-byok),.kodus-changelog-shell:has(#kodus-filter-ai-engine:checked) .kodus-changelog-section:has(.filter-ai-engine),.kodus-changelog-shell:has(#kodus-filter-self-hosted:checked) .kodus-changelog-section:has(.filter-self-hosted),.kodus-changelog-shell:has(#kodus-filter-git-provider:checked) .kodus-changelog-section:has(.filter-git-provider),.kodus-changelog-shell:has(#kodus-filter-performance:checked) .kodus-changelog-section:has(.filter-performance),.kodus-changelog-shell:has(#kodus-filter-ux-interface:checked) .kodus-changelog-section:has(.filter-ux-interface),.kodus-changelog-shell:has(#kodus-filter-notifications:checked) .kodus-changelog-section:has(.filter-notifications),.kodus-changelog-shell:has(#kodus-filter-kody-rules:checked) .kodus-changelog-section:has(.filter-kody-rules),.kodus-changelog-shell:has(#kodus-filter-mcp:checked) .kodus-changelog-section:has(.filter-mcp),.kodus-changelog-shell:has(#kodus-filter-custom-agents:checked) .kodus-changelog-section:has(.filter-custom-agents),.kodus-changelog-shell:has(#kodus-filter-billing-licenses:checked) .kodus-changelog-section:has(.filter-billing-licenses),.kodus-changelog-shell:has(#kodus-filter-cli:checked) .kodus-changelog-section:has(.filter-cli){display:block}.kodus-changelog-shell:has(#kodus-filter-security:checked) .kodus-changelog-release:has(.filter-security),.kodus-changelog-shell:has(#kodus-filter-cockpit:checked) .kodus-changelog-release:has(.filter-cockpit),.kodus-changelog-shell:has(#kodus-filter-byok:checked) .kodus-changelog-release:has(.filter-byok),.kodus-changelog-shell:has(#kodus-filter-ai-engine:checked) .kodus-changelog-release:has(.filter-ai-engine),.kodus-changelog-shell:has(#kodus-filter-self-hosted:checked) .kodus-changelog-release:has(.filter-self-hosted),.kodus-changelog-shell:has(#kodus-filter-git-provider:checked) .kodus-changelog-release:has(.filter-git-provider),.kodus-changelog-shell:has(#kodus-filter-performance:checked) .kodus-changelog-release:has(.filter-performance),.kodus-changelog-shell:has(#kodus-filter-ux-interface:checked) .kodus-changelog-release:has(.filter-ux-interface),.kodus-changelog-shell:has(#kodus-filter-notifications:checked) .kodus-changelog-release:has(.filter-notifications),.kodus-changelog-shell:has(#kodus-filter-kody-rules:checked) .kodus-changelog-release:has(.filter-kody-rules),.kodus-changelog-shell:has(#kodus-filter-mcp:checked) .kodus-changelog-release:has(.filter-mcp),.kodus-changelog-shell:has(#kodus-filter-custom-agents:checked) .kodus-changelog-release:has(.filter-custom-agents),.kodus-changelog-shell:has(#kodus-filter-billing-licenses:checked) .kodus-changelog-release:has(.filter-billing-licenses),.kodus-changelog-shell:has(#kodus-filter-cli:checked) .kodus-changelog-release:has(.filter-cli){display:grid}.kodus-changelog-empty{display:none;margin:0;color:inherit;font:inherit;line-height:inherit}.kodus-changelog-section+.kodus-changelog-section{margin-top:3rem;padding-top:2rem;border-top:1px solid rgba(248, 183, 109, 0.16)}.kodus-changelog-section-label{display:block;margin:0 0 2rem;color:#f8b76d;font:inherit;font-size:1em;font-weight:700;letter-spacing:0;line-height:inherit;text-transform:none}.kodus-changelog-item+.kodus-changelog-item{margin-top:2.5rem}.kodus-changelog-copy+.kodus-changelog-title,.kodus-changelog-list+.kodus-changelog-title,.kodus-changelog-video+.kodus-changelog-title{margin-top:1.75rem}.kodus-changelog-title{margin:0;color:#ffffff;font:inherit;font-size:1.25em;font-weight:700;letter-spacing:0;line-height:1.35}.kodus-changelog-copy{display:block;margin:0.85rem 0 0;color:inherit;font:inherit;line-height:inherit}.kodus-changelog-link{color:#f8b76d;font-weight:700;text-decoration:underline;text-decoration-color:rgba(248, 183, 109, 0.7);text-underline-offset:0.2em}.kodus-changelog-code{border-radius:0.35rem;background:rgba(248, 183, 109, 0.14);color:#f8b76d;padding:0.1rem 0.35rem;font-size:0.9em}.kodus-changelog-video{display:block;width:100%;margin:1.25rem 0 0;border:1px solid rgba(248, 183, 109, 0.22);border-radius:8px;background:rgba(0, 0, 0, 0.25)}.kodus-changelog-list{margin:0.85rem 0 0;padding-left:1.25rem;color:inherit;font:inherit;line-height:inherit}.kodus-changelog-list li+li{margin-top:0.5rem}.kodus-changelog-fix-list{margin-top:0.85rem}.kodus-changelog-fix{padding-left:1.25rem;position:relative}.kodus-changelog-fix .kodus-changelog-copy{margin-top:0}.kodus-changelog-fix-label{color:#ffffff;font-weight:700}.kodus-changelog-fix::before{content:\"\";position:absolute;top:0.75em;left:0.15rem;width:0.35rem;height:0.35rem;border-radius:999px;background:currentColor;opacity:0.68}.kodus-changelog-fix+.kodus-changelog-fix{margin-top:1.1rem}@media (max-width: 1120px){.kodus-changelog-release{grid-template-columns:6.5rem minmax(0, 1fr);column-gap:1.25rem}.kodus-changelog-filter-sidebar{grid-column:1 / -1;grid-row:1;position:static;margin-bottom:1.5rem;width:auto}.kodus-changelog-meta{grid-column:1;grid-row:2}.kodus-changelog-content{grid-column:2;grid-row:2}}@media (prefers-color-scheme: light){.kodus-changelog-title{color:#111827}.kodus-changelog-fix-label{color:#111827}}"}]}
{"page":{"pagePath":"en/how_to_deploy/platforms/gitlab/gitlab_oauth","slug":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth","pageMetadata":{"title":"GitLab OAuth App","description":"Create the GitLab application behind \"Sign in with GitLab\" and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.","icon":"gitlab","href":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create the GitLab application behind “Sign in with GitLab” and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`One GitLab application covers two things in Kodus:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sign in with GitLab`}),` on the sign-in page.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Install Gitlab app`}),` on the `,_jsx(_components.strong,{children:`Connect your Git tool`}),` step, or `,_jsx(_components.strong,{children:`Go to OAuth`}),` on the `,_jsx(_components.strong,{children:`OAuth`}),` tab when you connect GitLab on `,_jsx(_components.strong,{children:`Repositories`}),`. Both connect GitLab for code review with OAuth.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Skip this page if users sign in with email and connect GitLab with a `,_jsx(_components.a,{href:`/en/how_to_use/code_review/general_config/gitlab_pat`,children:`personal or group access token`}),`. A token connection needs no OAuth app.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`WEB_DOMAIN`}),`: Your Frontend URL (e.g., `,_jsx(_components.code,{children:`https://app.yourdomain.com`}),` or `,_jsx(_components.code,{children:`http://localhost:3000`}),`)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-create-the-oauth-app`,children:`Step 1: Create the OAuth App`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In GitLab, go to `,_jsx(_components.strong,{children:`User Settings`}),` > `,_jsx(_components.strong,{children:`Applications`})]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`New application`})]}),`\n`,_jsx(_components.li,{children:`Fill in the application name`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-configure-the-redirect-uris`,children:`Step 2: Configure the Redirect URIs`}),`\n`,_jsxs(_components.p,{children:[`Add both URIs, one per line, in `,_jsx(_components.strong,{children:`Redirect URI`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WEB_DOMAIN/api/auth/callback/gitlab`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WEB_DOMAIN/setup/gitlab`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The first completes `,_jsx(_components.strong,{children:`Sign in with GitLab`}),`. The second returns from GitLab after you connect GitLab with OAuth. Make sure they match your actual web domain and scheme (http/https).`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-configure-scopes`,children:`Step 3: Configure Scopes`}),`\n`,_jsx(_components.p,{children:`Select these scopes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`api`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`read_user`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`read_repository`})}),`\n`]}),`\n`,_jsx(_components.p,{children:`Each flow requests its own scopes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sign in with GitLab`}),` requests `,_jsx(_components.code,{children:`read_user`}),` only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Install Gitlab app`}),` and `,_jsx(_components.strong,{children:`Go to OAuth`}),` request the scopes in `,_jsx(_components.code,{children:`WEB_GITLAB_SCOPES`}),` (Step 4).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Kody needs `,_jsx(_components.code,{children:`api`}),` to post review comments and to create, edit and remove webhooks. `,_jsx(_components.code,{children:`read_api`}),` can read but cannot post.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.env.schema`}),` defaults `,_jsx(_components.code,{children:`WEB_GITLAB_SCOPES`}),` to `,_jsx(_components.code,{children:`read_api read_user read_repository`}),`. A connection made with that value can read your repositories but cannot post comments or manage webhooks. Set the value shown in Step 4.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-add-credentials-to-env`,children:`Step 4: Add Credentials to .env`}),`\n`,_jsxs(_components.p,{children:[`Copy the `,_jsx(_components.strong,{children:`Application ID`}),` and `,_jsx(_components.strong,{children:`Secret`}),` from GitLab. Both values go in two pairs of variables, because the web app and the API each read their own:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Sign in with GitLab`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WEB_OAUTH_GITLAB_CLIENT_ID=\"your_application_id_here\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WEB_OAUTH_GITLAB_CLIENT_SECRET=\"your_secret_here\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Connect GitLab with OAuth`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GLOBAL_GITLAB_CLIENT_ID=\"your_application_id_here\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GLOBAL_GITLAB_CLIENT_SECRET=\"your_secret_here\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GLOBAL_GITLAB_REDIRECT_URL=\"WEB_DOMAIN/setup/gitlab\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WEB_GITLAB_SCOPES=\"api read_user read_repository\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WEB_GITLAB_OAUTH_URL=\"https://gitlab.com/oauth/authorize\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`API_GITLAB_TOKEN_URL=\"https://gitlab.com/oauth/token\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`For self-managed GitLab, replace the host in `,_jsx(_components.code,{children:`WEB_GITLAB_OAUTH_URL`}),` and `,_jsx(_components.code,{children:`API_GITLAB_TOKEN_URL`}),` with your instance domain (e.g., `,_jsx(_components.code,{children:`https://gitlab.yourdomain.com/oauth/authorize`}),` and `,_jsx(_components.code,{children:`https://gitlab.yourdomain.com/oauth/token`}),`).`]}),`\n`,_jsx(_components.p,{children:`If you only use one of the two, set only its variables.`}),`\n`,_jsx(_components.p,{children:`Restart the web application and the API to apply the changes.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"GitLab OAuth App","description":"Create the GitLab application behind \"Sign in with GitLab\" and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.","icon":"gitlab","href":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Step 1: Create the OAuth App","slug":"step-1-create-the-oauth-app","depth":2,"children":[]},{"title":"Step 2: Configure the Redirect URIs","slug":"step-2-configure-the-redirect-uris","depth":2,"children":[]},{"title":"Step 3: Configure Scopes","slug":"step-3-configure-scopes","depth":2,"children":[]},{"title":"Step 4: Add Credentials to .env","slug":"step-4-add-credentials-to-env","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kodus","siteName":"Kodus","title":"GitLab OAuth App - Kodus","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":0},"es":{"href":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":1},"pt-BR":{"href":"/pt-BR/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":1},"ja":{"href":"/ja/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":1},"zh":{"href":"/zh/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":1}}},"lastModified":"2026-11-21T18:23:50.797Z","originalFileLocation":"en/how_to_deploy/platforms/gitlab/gitlab_oauth.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create the GitLab application behind \u0026quot;Sign in with GitLab\u0026quot; and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kodus\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"GitLab OAuth App - Kodus\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create the GitLab application behind \u0026quot;Sign in with GitLab\u0026quot; and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kodus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kodus.mintlify.site/_mintlify/api/og/v2?division=Gitlab\u0026amp;title=GitLab+OAuth+App\u0026amp;description=Create+the+GitLab+application+behind+%22Sign+in+with+GitLab%22+and+the+OAuth+connection+for+code+review%2C+with+the+redirect+URIs%2C+scopes+and+environment+variables+to\u0026amp;theme=38dae7d6b4994b977d0bfe1e\u0026amp;signature=693bebc11de60260933925b7b83ca34d21646f4c0d18018279d5cb1426b10bb6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"GitLab OAuth App - Kodus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create the GitLab application behind \u0026quot;Sign in with GitLab\u0026quot; and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kodus.mintlify.site/_mintlify/api/og/v2?division=Gitlab\u0026amp;title=GitLab+OAuth+App\u0026amp;description=Create+the+GitLab+application+behind+%22Sign+in+with+GitLab%22+and+the+OAuth+connection+for+code+review%2C+with+the+redirect+URIs%2C+scopes+and+environment+variables+to\u0026amp;theme=38dae7d6b4994b977d0bfe1e\u0026amp;signature=693bebc11de60260933925b7b83ca34d21646f4c0d18018279d5cb1426b10bb6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kodus\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F8B76D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/how_to_deploy/platforms/gitlab/gitlab_oauth.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.kodus.io/pt-BR/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.kodus.io/ja/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.kodus.io/zh/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kodus.io/#organization\",\"name\":\"Kodus\",\"url\":\"https://docs.kodus.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/logo/light.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=f936e2273166bb149af32c25f012a088\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kodus.io#website\",\"name\":\"Kodus\",\"url\":\"https://docs.kodus.io\",\"publisher\":{\"@id\":\"https://docs.kodus.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth#webpage\",\"url\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\",\"name\":\"GitLab OAuth App\",\"description\":\"Create the GitLab application behind \\\"Sign in with GitLab\\\" and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.\",\"dateModified\":\"2026-11-21T18:23:50.797Z\",\"isPartOf\":{\"@id\":\"https://docs.kodus.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Git providers configuration\",\"item\":\"https://docs.kodus.io/en/how_to_deploy/platforms/github/github_app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GitLab OAuth App\",\"item\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth#article\",\"headline\":\"GitLab OAuth App\",\"name\":\"GitLab OAuth App\",\"description\":\"Create the GitLab application behind \\\"Sign in with GitLab\\\" and the OAuth connection for code review, with the redirect URIs, scopes and environment variables to set.\",\"url\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kodus.io/en/how_to_deploy/platforms/gitlab/gitlab_oauth#webpage\"},\"dateModified\":\"2026-11-21T18:23:50.797Z\",\"publisher\":{\"@id\":\"https://docs.kodus.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kodus.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kodus\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kodus\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth.md","siteName":"Kodus","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"How to use","icon":"gamepad-modern","pages":[{"title":"How to use","href":"/en/how_to_use/overview"}]},{"tab":"How to deploy","icon":"rocket-launch","groups":[{"group":"Concepts","pages":[{"title":"Kodus Architecture","icon":"puzzle-piece","href":"/en/how_to_deploy/kodus_architecture"}]},{"group":"Local Quickstart","pages":[{"title":"Local Quickstart","icon":"laptop","href":"/en/how_to_deploy/local_quickstart/orchestrator"}]},{"group":"Deploy with Docker","pages":[{"title":"Installation","icon":"plug","href":"/en/how_to_deploy/deploy_kodus/generic_vm"},{"title":"Sandbox \u0026 AST Graph","icon":"box","href":"/en/how_to_deploy/deploy_kodus/sandbox"},{"title":"Analytics Worker","icon":"chart-line","tag":"enterprise","href":"/en/how_to_deploy/deploy_kodus/analytics_worker"},{"title":"Reverse Proxy","icon":"server","href":"/en/how_to_deploy/deploy_kodus/reverse_proxy"},{"title":"Anonymous Telemetry","icon":"satellite-dish","href":"/en/how_to_deploy/deploy_kodus/telemetry"},{"title":"Troubleshooting Guide","icon":"headset","href":"/en/how_to_deploy/deploy_kodus/troubleshooting"},{"title":"Updating","icon":"arrow-up","href":"/en/how_to_deploy/deploy_kodus/updating"}]},{"group":"Deploy with Kubernetes","pages":[{"title":"Kubernetes \u0026 OpenShift","icon":"dharmachakra","href":"/en/how_to_deploy/deploy_kodus/kubernetes"}]},{"group":"MCP","pages":[{"title":"MCP Manager","icon":"puzzle-piece","tag":"beta","href":"/en/how_to_deploy/deploy_kodus/mcp_manager"},{"title":"Kodus MCP server","href":"/en/how_to_deploy/deploy_kodus/mcp_server"}]},{"group":"Git providers configuration","pages":[{"group":"Github","icon":"github","pages":[{"title":"Creating a GitHub App","icon":"github","href":"/en/how_to_deploy/platforms/github/github_app"},{"title":"GitHub OAuth App (Sign in with GitHub)","icon":"github","href":"/en/how_to_deploy/platforms/github/github_oauth"},{"title":"Creating a Webhook","description":"Manually create the GitHub webhook for a token integration when automatic registration didn't happen, and select the three events Kodus consumes.","icon":"webhook","href":"/en/how_to_deploy/platforms/github/github_webhook"}]},{"group":"Gitlab","icon":"gitlab","pages":[{"title":"GitLab OAuth App","icon":"gitlab","href":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth"},{"title":"Creating a Webhook","description":"Manually create the GitLab webhook when automatic registration didn't happen, and select the events Kodus consumes.","icon":"webhook","href":"/en/how_to_deploy/platforms/gitlab/gitlab_webhook"}]},{"group":"Bitbucket","icon":"bitbucket","pages":[{"title":"Creating a Webhook","icon":"webhook","href":"/en/how_to_deploy/platforms/bitbucket/bitbucket_webhook"}]},{"group":"Azure DevOps","icon":"microsoft","pages":[{"title":"Creating a Webhook","icon":"webhook","href":"/en/how_to_deploy/platforms/azure_devops/azdevops_webhook"}]},{"group":"Forgejo","icon":"/images/forgejo.svg","pages":[{"title":"Creating a Webhook","icon":"webhook","href":"/en/how_to_deploy/platforms/forgejo/forgejo_webhook"}]}]}]},{"tab":"Knowledge Base","icon":"book-open","pages":[{"title":"Knowledge Base","href":"/en/knowledge_base/introduction"}]},{"tab":"Cookbook","icon":"fire","pages":[{"title":"Cookbook","href":"/en/cookbook/custom-plugin-install"}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/how_to_deploy/platforms/gitlab/gitlab_oauth"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/how_to_deploy/platforms/gitlab/gitlab_oauth"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/how_to_deploy/platforms/gitlab/gitlab_oauth"}]}]},"basePath":"","title":"GitLab OAuth App - Kodus","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}