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

# Ověřování

Tato funkce je 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="/spaces/JBUiUFg9lYgOPSRukI2h/pages/8e5846759e6ec3e4704f756f8a3acf690fea6baa" %}
[OIDC autentizace](/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/JBUiUFg9lYgOPSRukI2h/pages/c1f93db7b5b19d3c720f4bc87375c6c90b48de30" %}
[LDAP autentizace](/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/JBUiUFg9lYgOPSRukI2h/pages/b0e97a16acc6eeb3854f02a7661d4f51eb92205d" %}
[SAML autentizace](/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áno k aktivaci konkrétního modulu ověřování. Tato proměnná prostředí určuje, které externí metody ověřování jsou aktivní. Dostupné možnosti jsou (malými písmeny):

* saml
* ldap
* oidc

### Doporučení pro SSO

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

{% hint style="info" %}
Musíme aktualizovat passport-ldapauth, v poslední době se snažím 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 je 2.x.x, což je před 6 lety.
{% endhint %}

Nejsem si jistý, jaký je důvod, protože všichni spoléháme na externí balíček pro LDAP (také saml, oauth) ověřování. Pokud to nefunguje, situace může být stejná i pro Overleaf Server Pro, protože jsme do interního balíčku pouze předali všechny proměnné prostředí; pokud tam jsou nějaké chyby, zatím nemáme tušení.

**Proto důrazně doporučuji, aby si naši uživatelé nastavili vývojové prostředí a otestovali 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 v terminálu vidět všechny logy, 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://overleaf-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.
