> 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/de/konfiguration/overleaf-toolkit/authentication.md).

# Authentifizierung

Diese Funktion wurde entwickelt von [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Es werden 3 Authentifizierungsmethoden unterstützt. Nach der Konfiguration können Sie sich mit den folgenden Optionen anmelden, wie das Bild unten zeigt.

<figure><img src="/files/37a044a477d8b846543a8b6fb83b3559a1f33956" alt=""><figcaption></figcaption></figure>

Wir empfehlen Ihnen dringend, OIDC zu verwenden, da dies die allgemeinste Methode ist.

{% columns %}
{% column width="50%" %}
{% content-ref url="/pages/7ab247a8b6111f288b2d3b6a1a99f1eda6374948" %}
[OIDC-Authentifizierung](/on-premises/de/konfiguration/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/pages/d70b2337b7dcd9454fc59e6ab7cf288a3c947f70" %}
[LDAP-Authentifizierung](/on-premises/de/konfiguration/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/pages/d9dc6584a21c832fd946506c5375eacf76f828ce" %}
[SAML-Authentifizierung](/on-premises/de/konfiguration/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}

### Globale Konfiguration

Die Umgebungsvariable `EXTERNAL_AUTH` ist erforderlich, um das spezifische Authentifizierungsmodul zu aktivieren. Diese Umgebungsvariable legt fest, welche externen Authentifizierungsmethoden aktiviert sind. Verfügbare Optionen sind (in Kleinbuchstaben):

* saml
* ldap
* oidc

### Vorschläge für SSO

Ich habe saml, ldap und oauth für overleaf getestet. Sowohl saml als auch oauth funktionieren in overleaf gut, aber bei ldap hängt es davon ab. Dafür funktioniert es nicht gut für <https://docs.goauthentik.io/>, aber es funktioniert gut in openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
Wir müssen passport-ldapauth aktualisieren, kürzlich habe ich versucht, overleaf ldap mit <https://goauthentik.io/> , zu testen, und es ist fehlgeschlagen. Nachdem ich "passport-ldapauth" auf 3.0.0 aktualisiert habe, funktioniert alles gut.

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

Ursprünglich war es 2.x.x, also vor 6 Jahren.
{% endhint %}

Ich bin mir nicht sicher, woran es liegt, weil wir alle von einem externen Paket abhängen, um LDAP- (auch saml-, oauth-) Authentifizierung durchzuführen. Wenn es nicht funktioniert, kann die Situation für overleaf server pro dieselbe sein, denn wir haben alle Umgebungsvariablen nur an das interne Paket weitergegeben; wenn es dort Bugs gibt, wissen wir derzeit nichts davon.

**Daher empfehle ich unseren Benutzern dringend, eine Entwicklungsumgebung einzurichten, um SSO mit dem gesamten Quellcode zu testen**, die verfügbar ist unter [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). In der Entwicklungsumgebung können Sie alle Protokolle im Terminal sehen, was das Debuggen bequem macht.

\ <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/de/konfiguration/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.
