> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-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 kun je inloggen met de volgende opties, zoals de onderstaande afbeelding laat zien.

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

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

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

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

{% column width="50%" %}
{% content-ref url="/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 geactiveerd zijn. 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 ldap hangt 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 bijwerken, ik ben onlangs bezig geweest met het testen van Overleaf LDAP met <https://goauthentik.io/> , het mislukte. Nadat ik "passport-ldapauth" naar 3.0.0 had bijgewerkt, werkt alles goed.

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

De oorspronkelijke versie is 2.x.x, en die is 6 jaar oud.
{% endhint %}

Ik weet niet zeker wat de reden is, omdat we allemaal afhankelijk zijn van een extern pakket voor LDAP-authenticatie (ook saml, oauth). Als het niet werkt, kan de situatie hetzelfde zijn voor Overleaf Server Pro, omdat we gewoon alle omgevingsvariabelen doorgeven aan het interne pakket; 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 kun je alle logs in de terminal zien, wat handig is voor foutopsporing.

\ <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://ayakaleaf-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.
