> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/es/configuracion/overleaf-toolkit/authentication.md).

# Autenticación

Esta función fue desarrollada por [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Se admiten 3 métodos de autenticación. Después de la configuración, puede iniciar sesión con las siguientes opciones, como muestra la imagen a continuación.

<figure><img src="/files/21a9b8012d521d6f3ff400971980d557674f6dae" alt=""><figcaption></figcaption></figure>

Le recomendamos encarecidamente que use OIDC, ya que es el método más general.

{% columns %}
{% column width="50%" %}
{% content-ref url="/spaces/feUF8hZUcA7oIVYkclGf/pages/6d5d72169cf61a019f9babc0acd19ea76a4103fa" %}
[Autenticación OIDC](/on-premises/es/configuracion/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/feUF8hZUcA7oIVYkclGf/pages/54c1932902cb26ecf2929aa38cdc0fa5e216b42b" %}
[Autenticación LDAP](/on-premises/es/configuracion/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/feUF8hZUcA7oIVYkclGf/pages/e75c878b7deab3812b726181d7b6048be5d6a6a4" %}
[Autenticación SAML](/on-premises/es/configuracion/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}

{% endcolumn %}
{% endcolumns %}

### Configuración global

La variable de entorno `EXTERNAL_AUTH` es necesario para habilitar el módulo de autenticación específico. Esta variable de entorno especifica qué métodos de autenticación externos están activados. Las opciones disponibles son (en minúsculas):

* saml
* ldap
* oidc

### Sugerencias para SSO

Probé saml, ldap y oauth para Overleaf. Tanto saml como oauth funcionan bien en Overleaf, pero ldap depende. No puede funcionar bien para <https://docs.goauthentik.io/>, pero funciona bien en openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
Necesitamos actualizar passport-ldapauth; recientemente estoy intentando probar LDAP de Overleaf con <https://goauthentik.io/> , falló. Después de actualizar "passport-ldapauth" a 3.0.0, todo funciona bien.

```
"passport-ldapauth": "^3.0.0",
```

El original es 2.x.x, que es de hace 6 años.
{% endhint %}

No estoy seguro de cuál es la razón, porque todos dependemos de un paquete externo para hacer autenticación LDAP (también saml, oauth). Si no funciona, la situación puede ser la misma para Overleaf Server Pro, porque solo pasamos todas las variables de entorno al paquete interno; si hay algunos errores, actualmente no tenemos idea.

**Así que recomiendo encarecidamente a nuestros usuarios que configuren un entorno de desarrollo para probar SSO con todo el código fuente**, que está disponible en [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). En el entorno de desarrollo, puede ver todos los registros en la terminal, lo que facilita la depuración.

\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/es/configuracion/overleaf-toolkit/authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
