> 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/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="/spaces/guUtHdzRqMmd8y5zhxnN/pages/7ab247a8b6111f288b2d3b6a1a99f1eda6374948" %}
[OIDC-Authentifizierung](/on-premises/de/konfiguration/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

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

{% column width="50%" %}
{% content-ref url="/spaces/guUtHdzRqMmd8y5zhxnN/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 jeweilige 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 kommt es darauf an. Es kann dafür nicht gut funktionieren <https://docs.goauthentik.io/>, aber in OpenLDAP funktioniert es gut (<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/> , es schlug fehl. Nachdem ich "passport-ldapauth" auf 3.0.0 aktualisiert habe, funktioniert alles gut.

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

Die ursprüngliche Version ist 2.x.x, und die ist 6 Jahre alt.
{% endhint %}

Ich bin mir nicht sicher, woran es liegt, da wir alle von einem externen Paket für LDAP- (auch saml-, oauth-) Authentifizierung angewiesen sind. Wenn es nicht funktioniert, kann die Situation für Overleaf Server Pro dieselbe sein, denn wir geben lediglich alle Umgebungsvariablen an das interne Paket weiter; wenn es dort Bugs gibt, haben wir derzeit keine Ahnung.

**Daher empfehle ich unseren Nutzern dringend, eine Entwicklungsumgebung einzurichten, um SSO mit dem gesamten Quellcode zu testen**, der 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 erleichtert.

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