Crea la aplicación de GitLab detrás de “Sign in with GitLab” y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.
Una aplicación de GitLab cubre dos cosas en Kodus:
Sign in with GitLab en la página de inicio de sesión.
Install Gitlab app en el paso Connect your Git tool, o Go to OAuth en la pestaña OAuth cuando conectas GitLab en Repositories. Ambos conectan GitLab para la revisión de código con OAuth.
Omite esta página si los usuarios inician sesión con email y conectan GitLab con un token de acceso personal o de grupo. Una conexión con token no necesita una OAuth app.
Requisitos previos
WEB_DOMAIN: URL de tu frontend (ej., https://app.yourdomain.com o http://localhost:3000)
Paso 1: Crear la OAuth App
En GitLab, ve a User Settings > Applications
Haz clic en New application
Completa el nombre de la aplicación
Paso 2: Configurar las Redirect URIs
Agrega ambas URIs, una por línea, en Redirect URI:
La primera completa Sign in with GitLab. La segunda es el retorno desde GitLab después de conectar GitLab con OAuth. Asegúrate de que coincidan con tu dominio web real y el esquema (http/https).
Paso 3: Configurar los scopes
Selecciona estos scopes:
api
read_user
read_repository
Cada flujo solicita sus propios scopes:
Sign in with GitLab solicita únicamente read_user.
Install Gitlab app y Go to OAuth solicitan los scopes de WEB_GITLAB_SCOPES (Paso 4).
Kody necesita api para publicar comentarios de revisión y para crear, editar y eliminar webhooks. read_api puede leer pero no puede publicar.
.env.schema define WEB_GITLAB_SCOPES por defecto como read_api read_user read_repository. Una conexión hecha con ese valor puede leer tus repositorios pero no puede publicar comentarios ni gestionar webhooks. Define el valor que se muestra en el Paso 4.
Paso 4: Agregar las credenciales al .env
Copia el Application ID y el Secret de GitLab. Ambos valores van en dos pares de variables, porque la aplicación web y la API leen cada una las suyas:
# 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"
Para GitLab self-managed, reemplaza el host en WEB_GITLAB_OAUTH_URL y API_GITLAB_TOKEN_URL con el dominio de tu instancia (ej., https://gitlab.yourdomain.com/oauth/authorize y https://gitlab.yourdomain.com/oauth/token).Si solo usas uno de los dos, define solo sus variables.Reinicia la aplicación web y la API para aplicar los cambios.
{"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":"es/how_to_deploy/platforms/gitlab/gitlab_oauth","slug":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth","pageMetadata":{"title":"OAuth App de GitLab","description":"Crea la aplicación de GitLab detrás de \"Sign in with GitLab\" y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.","icon":"gitlab","href":"/es/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: \"Crea la aplicación de GitLab detrás de “Sign in with GitLab” y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.\"\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:`Una aplicación de GitLab cubre dos cosas en Kodus:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sign in with GitLab`}),` en la página de inicio de sesión.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Install Gitlab app`}),` en el paso `,_jsx(_components.strong,{children:`Connect your Git tool`}),`, o `,_jsx(_components.strong,{children:`Go to OAuth`}),` en la pestaña `,_jsx(_components.strong,{children:`OAuth`}),` cuando conectas GitLab en `,_jsx(_components.strong,{children:`Repositories`}),`. Ambos conectan GitLab para la revisión de código con OAuth.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Omite esta página si los usuarios inician sesión con email y conectan GitLab con un `,_jsx(_components.a,{href:`/es/how_to_use/code_review/general_config/gitlab_pat`,children:`token de acceso personal o de grupo`}),`. Una conexión con token no necesita una OAuth app.`]}),`\n`,_jsx(Heading,{level:`2`,id:`requisitos-previos`,children:`Requisitos previos`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`WEB_DOMAIN`}),`: URL de tu frontend (ej., `,_jsx(_components.code,{children:`https://app.yourdomain.com`}),` o `,_jsx(_components.code,{children:`http://localhost:3000`}),`)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`paso-1-crear-la-oauth-app`,children:`Paso 1: Crear la OAuth App`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`En GitLab, ve a `,_jsx(_components.strong,{children:`User Settings`}),` > `,_jsx(_components.strong,{children:`Applications`})]}),`\n`,_jsxs(_components.li,{children:[`Haz clic en `,_jsx(_components.strong,{children:`New application`})]}),`\n`,_jsx(_components.li,{children:`Completa el nombre de la aplicación`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`paso-2-configurar-las-redirect-uris`,children:`Paso 2: Configurar las Redirect URIs`}),`\n`,_jsxs(_components.p,{children:[`Agrega ambas URIs, una por línea, en `,_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:[`La primera completa `,_jsx(_components.strong,{children:`Sign in with GitLab`}),`. La segunda es el retorno desde GitLab después de conectar GitLab con OAuth. Asegúrate de que coincidan con tu dominio web real y el esquema (http/https).`]}),`\n`,_jsx(Heading,{level:`2`,id:`paso-3-configurar-los-scopes`,children:`Paso 3: Configurar los scopes`}),`\n`,_jsx(_components.p,{children:`Selecciona estos 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:`Cada flujo solicita sus propios scopes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sign in with GitLab`}),` solicita únicamente `,_jsx(_components.code,{children:`read_user`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Install Gitlab app`}),` y `,_jsx(_components.strong,{children:`Go to OAuth`}),` solicitan los scopes de `,_jsx(_components.code,{children:`WEB_GITLAB_SCOPES`}),` (Paso 4).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Kody necesita `,_jsx(_components.code,{children:`api`}),` para publicar comentarios de revisión y para crear, editar y eliminar webhooks. `,_jsx(_components.code,{children:`read_api`}),` puede leer pero no puede publicar.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.env.schema`}),` define `,_jsx(_components.code,{children:`WEB_GITLAB_SCOPES`}),` por defecto como `,_jsx(_components.code,{children:`read_api read_user read_repository`}),`. Una conexión hecha con ese valor puede leer tus repositorios pero no puede publicar comentarios ni gestionar webhooks. Define el valor que se muestra en el Paso 4.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`paso-4-agregar-las-credenciales-al-env`,children:`Paso 4: Agregar las credenciales al .env`}),`\n`,_jsxs(_components.p,{children:[`Copia el `,_jsx(_components.strong,{children:`Application ID`}),` y el `,_jsx(_components.strong,{children:`Secret`}),` de GitLab. Ambos valores van en dos pares de variables, porque la aplicación web y la API leen cada una las suyas:`]}),`\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:[`Para GitLab self-managed, reemplaza el host en `,_jsx(_components.code,{children:`WEB_GITLAB_OAUTH_URL`}),` y `,_jsx(_components.code,{children:`API_GITLAB_TOKEN_URL`}),` con el dominio de tu instancia (ej., `,_jsx(_components.code,{children:`https://gitlab.yourdomain.com/oauth/authorize`}),` y `,_jsx(_components.code,{children:`https://gitlab.yourdomain.com/oauth/token`}),`).`]}),`\n`,_jsx(_components.p,{children:`Si solo usas uno de los dos, define solo sus variables.`}),`\n`,_jsx(_components.p,{children:`Reinicia la aplicación web y la API para aplicar los cambios.`})]})}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":"OAuth App de GitLab","description":"Crea la aplicación de GitLab detrás de \"Sign in with GitLab\" y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.","icon":"gitlab","href":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Requisitos previos","slug":"requisitos-previos","depth":2,"children":[]},{"title":"Paso 1: Crear la OAuth App","slug":"paso-1-crear-la-oauth-app","depth":2,"children":[]},{"title":"Paso 2: Configurar las Redirect URIs","slug":"paso-2-configurar-las-redirect-uris","depth":2,"children":[]},{"title":"Paso 3: Configurar los scopes","slug":"paso-3-configurar-los-scopes","depth":2,"children":[]},{"title":"Paso 4: Agregar las credenciales al .env","slug":"paso-4-agregar-las-credenciales-al-env","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kodus","siteName":"Kodus","title":"OAuth App de GitLab - Kodus","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":1},"es":{"href":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth","matchLevel":0},"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":"es/how_to_deploy/platforms/gitlab/gitlab_oauth.mdx","locale":"es"},"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=\"Crea la aplicación de GitLab detrás de \u0026quot;Sign in with GitLab\u0026quot; y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.\">\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=\"OAuth App de GitLab - Kodus\">\u003cmeta data-mint-head property=\"og:description\" content=\"Crea la aplicación de GitLab detrás de \u0026quot;Sign in with GitLab\u0026quot; y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kodus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kodus.io/es/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=OAuth+App+de+GitLab\u0026amp;description=Crea+la+aplicaci%C3%B3n+de+GitLab+detr%C3%A1s+de+%22Sign+in+with+GitLab%22+y+de+la+conexi%C3%B3n+OAuth+para+la+revisi%C3%B3n+de+c%C3%B3digo%2C+con+las+redirect+URIs%2C+los+scopes+y+las+variable\u0026amp;theme=38dae7d6b4994b977d0bfe1e\u0026amp;signature=86d9cf44ce48ebc650b3ffb8e9a608448fcbfa97710d4f7110c7da92eba9a8df\">\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=\"OAuth App de GitLab - Kodus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Crea la aplicación de GitLab detrás de \u0026quot;Sign in with GitLab\u0026quot; y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kodus.mintlify.site/_mintlify/api/og/v2?division=Gitlab\u0026amp;title=OAuth+App+de+GitLab\u0026amp;description=Crea+la+aplicaci%C3%B3n+de+GitLab+detr%C3%A1s+de+%22Sign+in+with+GitLab%22+y+de+la+conexi%C3%B3n+OAuth+para+la+revisi%C3%B3n+de+c%C3%B3digo%2C+con+las+redirect+URIs%2C+los+scopes+y+las+variable\u0026amp;theme=38dae7d6b4994b977d0bfe1e\u0026amp;signature=86d9cf44ce48ebc650b3ffb8e9a608448fcbfa97710d4f7110c7da92eba9a8df\">\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/es/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=\"/es/how_to_deploy/platforms/gitlab/gitlab_oauth.md\">\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=\"en\" href=\"https://docs.kodus.io/en/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/es/how_to_deploy/platforms/gitlab/gitlab_oauth#webpage\",\"url\":\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth\",\"name\":\"OAuth App de GitLab\",\"description\":\"Crea la aplicación de GitLab detrás de \\\"Sign in with GitLab\\\" y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.\",\"dateModified\":\"2026-11-21T18:23:50.797Z\",\"isPartOf\":{\"@id\":\"https://docs.kodus.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Configuración de Proveedores Git\",\"item\":\"https://docs.kodus.io/es/how_to_deploy/platforms/github/github_app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OAuth App de GitLab\",\"item\":\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth#article\",\"headline\":\"OAuth App de GitLab\",\"name\":\"OAuth App de GitLab\",\"description\":\"Crea la aplicación de GitLab detrás de \\\"Sign in with GitLab\\\" y de la conexión OAuth para la revisión de código, con las redirect URIs, los scopes y las variables de entorno que debes definir.\",\"url\":\"https://docs.kodus.io/es/how_to_deploy/platforms/gitlab/gitlab_oauth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kodus.io/es/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":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth.md","siteName":"Kodus","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/en/how_to_deploy/platforms/gitlab/gitlab_oauth"}]},{"language":"es","tabs":[{"tab":"Cómo usar","icon":"gamepad-modern","pages":[{"title":"Cómo usar","href":"/es/how_to_use/overview"}]},{"tab":"Cómo desplegar","icon":"rocket-launch","groups":[{"group":"Conceptos","pages":[{"title":"Arquitectura de Kodus","icon":"puzzle-piece","href":"/es/how_to_deploy/kodus_architecture"}]},{"group":"Inicio Rápido Local","pages":[{"title":"Inicio rápido local","icon":"laptop","href":"/es/how_to_deploy/local_quickstart/orchestrator"}]},{"group":"Despliegue con Docker","pages":[{"title":"Instalación","icon":"plug","href":"/es/how_to_deploy/deploy_kodus/generic_vm"},{"title":"Sandbox \u0026 AST Graph","icon":"box","href":"/es/how_to_deploy/deploy_kodus/sandbox"},{"title":"Analytics Worker","icon":"chart-line","tag":"enterprise","href":"/es/how_to_deploy/deploy_kodus/analytics_worker"},{"title":"Proxy inverso","icon":"server","href":"/es/how_to_deploy/deploy_kodus/reverse_proxy"},{"title":"Telemetría Anónima","icon":"satellite-dish","href":"/es/how_to_deploy/deploy_kodus/telemetry"},{"title":"Guía de solución de problemas","icon":"headset","href":"/es/how_to_deploy/deploy_kodus/troubleshooting"},{"title":"Actualización","icon":"arrow-up","href":"/es/how_to_deploy/deploy_kodus/updating"}]},{"group":"Desplegar con Kubernetes","pages":[{"title":"Kubernetes y OpenShift","icon":"dharmachakra","href":"/es/how_to_deploy/deploy_kodus/kubernetes"}]},{"group":"MCP","pages":[{"title":"MCP Manager","icon":"puzzle-piece","tag":"beta","href":"/es/how_to_deploy/deploy_kodus/mcp_manager"},{"title":"Servidor MCP de Kodus","href":"/es/how_to_deploy/deploy_kodus/mcp_server"}]},{"group":"Configuración de Proveedores Git","pages":[{"group":"Github","icon":"github","pages":[{"title":"Crear una GitHub App","icon":"github","href":"/es/how_to_deploy/platforms/github/github_app"},{"title":"OAuth App de GitHub (Iniciar sesión con GitHub)","icon":"github","href":"/es/how_to_deploy/platforms/github/github_oauth"},{"title":"Crear un webhook","description":"Crea manualmente el webhook de GitHub para una integración con token cuando el registro automático no ocurrió, y selecciona los tres eventos que Kodus consume.","icon":"webhook","href":"/es/how_to_deploy/platforms/github/github_webhook"}]},{"group":"Gitlab","icon":"gitlab","pages":[{"title":"OAuth App de GitLab","icon":"gitlab","href":"/es/how_to_deploy/platforms/gitlab/gitlab_oauth"},{"title":"Crear un webhook","description":"Crea manualmente el webhook de GitLab cuando el registro automático no ocurrió, y selecciona los eventos que Kodus consume.","icon":"webhook","href":"/es/how_to_deploy/platforms/gitlab/gitlab_webhook"}]},{"group":"Bitbucket","icon":"bitbucket","pages":[{"title":"Crear un webhook","icon":"webhook","href":"/es/how_to_deploy/platforms/bitbucket/bitbucket_webhook"}]},{"group":"Azure DevOps","icon":"microsoft","pages":[{"title":"Crear un webhook","icon":"webhook","href":"/es/how_to_deploy/platforms/azure_devops/azdevops_webhook"}]},{"group":"Forgejo","icon":"/images/forgejo.svg","pages":[{"title":"Crear un webhook","icon":"webhook","href":"/es/how_to_deploy/platforms/forgejo/forgejo_webhook"}]}]}]},{"tab":"Base de Conocimiento","icon":"book-open","pages":[{"title":"Base de Conocimiento","href":"/es/knowledge_base/introduction"}]},{"tab":"Recetario","icon":"fire","pages":[{"title":"Recetario","href":"/es/cookbook/custom-plugin-install"}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"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":"OAuth App de GitLab - Kodus","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}