> 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/on-premises-cs/konfigurace/overleaf-toolkit/authentication.md).

# Ověřování

Tato funkce byla vyvinuta [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Jsou podporovány 3 metody ověřování. Po konfiguraci se můžete přihlásit pomocí následujících možností, jak ukazuje obrázek níže.

<figure><img src="/files/8f22c4a75845cd8254c57d494345472d5e223360" alt=""><figcaption></figcaption></figure>

Důrazně doporučujeme používat OIDC, protože jde o nejobecnější metodu.

{% columns %}
{% column width="50%" %}
{% content-ref url="/pages/8e5846759e6ec3e4704f756f8a3acf690fea6baa" %}
[Ověřování OIDC](/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/pages/c1f93db7b5b19d3c720f4bc87375c6c90b48de30" %}
[Ověřování LDAP](/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/pages/b0e97a16acc6eeb3854f02a7661d4f51eb92205d" %}
[Ověřování SAML](/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}

### Globální konfigurace

Proměnná prostředí `EXTERNAL_AUTH` je vyžadována k aktivaci konkrétního ověřovacího modulu. Tato proměnná prostředí určuje, které externí metody ověřování jsou aktivovány. Dostupné možnosti jsou (malými písmeny):

* saml
* ldap
* oidc

### Návrhy pro SSO

Testoval jsem saml, ldap, oauth pro Overleaf. Saml i oauth fungují v Overleafu dobře, ale u ldap záleží na tom. Nemůže fungovat dobře pro <https://docs.goauthentik.io/>, ale funguje dobře v openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
Musíme aktualizovat passport-ldapauth, nedávno jsem se snažil testovat Overleaf LDAP s <https://goauthentik.io/> , selhalo to. Poté, co jsem aktualizoval "passport-ldapauth" na 3.0.0, vše funguje dobře.

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

Původní verze byla 2.x.x, což je staré 6 let.
{% endhint %}

Nejsem si jistý, v čem je důvod, protože všichni spoléháme na externí balíček pro LDAP (stejně jako pro saml, oauth) ověřování. Pokud to nefunguje, situace může být stejná i pro Overleaf Server Pro, protože jsme jen předali všechny proměnné prostředí internímu balíčku; pokud tam jsou nějaké chyby, v tuto chvíli o nich nevíme.

**Proto našim uživatelům důrazně doporučuji nastavit vývojové prostředí a otestovat SSO se všemi zdrojovými kódy**, které je dostupné na [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). Ve vývojovém prostředí můžete vidět všechny logy v terminálu, což usnadňuje ladě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://ayakaleaf-pro.ayaka.space/on-premises/on-premises-cs/konfigurace/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.
