> 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/nl/configuratie/overleaf-toolkit/authentication.md).

# Authenticatie

Deze functie is ontwikkeld door [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Er worden 3 authenticatiemethoden ondersteund. Na configuratie kunt u inloggen met de volgende opties, zoals de afbeelding hieronder laat zien.

<figure><img src="/files/813774a8a74a463abb077f730f430e9c10194a00" alt=""><figcaption></figcaption></figure>

We raden u sterk aan OIDC te gebruiken, aangezien dit de meest algemene methode is.

{% columns %}
{% column width="50%" %}
{% content-ref url="/spaces/OnzB1gY8ovNZpVDRV2lE/pages/f0dcbbf2a5c7e7b1d67649dfea9de387dc8fbdde" %}
[OIDC-authenticatie](/on-premises/nl/configuratie/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/OnzB1gY8ovNZpVDRV2lE/pages/1845717f62fd5baca6bcff5ed5d3d5e2416f6081" %}
[LDAP-authenticatie](/on-premises/nl/configuratie/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/OnzB1gY8ovNZpVDRV2lE/pages/5cc27578970f32609291ea709dff4a2cbdf026d8" %}
[SAML-authenticatie](/on-premises/nl/configuratie/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}

{% endcolumn %}
{% endcolumns %}

### Globale configuratie

De omgevingsvariabele `EXTERNAL_AUTH` is vereist om de specifieke authenticatiemodule in te schakelen. Deze omgevingsvariabele geeft aan welke externe authenticatiemethoden zijn geactiveerd. Beschikbare opties zijn (in kleine letters):

* saml
* ldap
* oidc

### Suggesties voor SSO

Ik heb saml, ldap en oauth voor Overleaf getest. Zowel saml als oauth werken goed in Overleaf, maar bij ldap hangt het ervan af. Het kan niet goed werken voor <https://docs.goauthentik.io/>, maar het werkt goed in openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
We moeten passport-ldapauth updaten; onlangs probeerde ik Overleaf-ldap te testen met <https://goauthentik.io/> , het mislukte. Nadat ik "passport-ldapauth" had geüpdatet naar 3.0.0, werkt alles goed.

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

De oorspronkelijke versie is 2.x.x, die van 6 jaar geleden is.
{% endhint %}

Ik weet niet zeker wat de reden is, omdat we allemaal afhankelijk zijn van een extern pakket om LDAP- (ook saml, oauth-)authenticatie te doen. Als het niet werkt, kan de situatie hetzelfde zijn voor Overleaf Server Pro, omdat we gewoon alle omgevingsvariabelen aan het interne pakket doorgeven; als er bugs zijn, hebben we daar momenteel geen idee van.

**Dus ik raad onze gebruikers sterk aan een ontwikkelomgeving op te zetten om SSO met alle broncode te testen**, die beschikbaar is op [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). In een ontwikkelomgeving kunt u alle logs in de terminal zien, wat handig is voor debugging.

\ <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/nl/configuratie/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.
