# How do I configure Okteto with Gitlab?

**URL:** <https://community.okteto.com/t/how-do-i-configure-okteto-with-gitlab/575>\
**Category:** How Do I?\
**Created:** [January 25, 2023, 2:13am UTC](https://community.okteto.com/t/how-do-i-configure-okteto-with-gitlab/575 "2023-01-25T02:13:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [January 25, 2023, 2:13am UTC](https://community.okteto.com/t/how-do-i-configure-okteto-with-gitlab/575/1 "2023-01-25T02:13:01Z")

</div>

Is it possible to use GitLab as the authentication provider for Okteto Self-Hosted?

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [January 25, 2023, 2:13am UTC](https://community.okteto.com/t/how-do-i-configure-okteto-with-gitlab/575/2 "2023-01-25T02:13:15Z")

</div>

You can use Gitlab as your authentication provider via our OpenID configuration.

You need to create an OAuth app in your Gitlab instance with the OpenID and Profile scopes, get the secrets and the authorization endpoints, and set the `auth` section of your Helm configuration file as follows:

```auto
auth:
  openid:
    enabled: true
    clientId: $CLIENT_ID
    clientSecret: $CLIENT_SECRET
    endpoints:
      issuer: "https://gitlab.com"
      authorization: "https://gitlab.com/oauth/authorize"
    mapping:
      externalIDKey: email

```

[Our complete documentation on configuring Gitlab and Okteto is available here](https://www.okteto.com/docs/self-hosted/guides/gitlab/).
