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

# Godkendelse

Denne funktion er udviklet af [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Der understøttes 3 autentificeringsmetoder. Efter konfiguration kan du logge ind med følgende muligheder, som billedet nedenfor viser.

<figure><img src="/files/7e6ed0a060099088c47b2746eda7d1bf7e68a342" alt=""><figcaption></figcaption></figure>

Vi anbefaler kraftigt, at du bruger OIDC, da dette er den mest generelle metode.

{% columns %}
{% column width="50%" %}
{% content-ref url="/spaces/cUnHps6KZxBLYUyUzl0b/pages/f73175b1e0292c4b21b82220fa60e1c2c89359df" %}
[OIDC-godkendelse](/on-premises/da/konfiguration/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/cUnHps6KZxBLYUyUzl0b/pages/b75a99e1c89acf081f116b1d3ea2f2ca8e4c87fe" %}
[LDAP-godkendelse](/on-premises/da/konfiguration/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/cUnHps6KZxBLYUyUzl0b/pages/f295fcc79abcd9b4672e1d35487c69f473c4e1d5" %}
[SAML-godkendelse](/on-premises/da/konfiguration/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}

{% endcolumn %}
{% endcolumns %}

### Global konfiguration

Miljøvariablen `EXTERNAL_AUTH` kræves for at aktivere det specifikke autentificeringsmodul. Denne miljøvariabel angiver, hvilke eksterne autentificeringsmetoder der er aktiveret. Tilgængelige muligheder er (med små bogstaver):

* saml
* ldap
* oidc

### Forslag til SSO

Jeg testede saml, ldap, oauth til overleaf. Både saml og oauth fungerer godt i overleaf, men ldap afhænger det af. Det kan ikke fungere godt for <https://docs.goauthentik.io/>, men det fungerer godt i openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
Vi skal opdatere passport-ldapauth; for nylig har jeg forsøgt at teste overleaf ldap med <https://goauthentik.io/> , mislykkedes det. Efter jeg opdaterede "passport-ldapauth" til 3.0.0, fungerer alt godt.

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

Den oprindelige er 2.x.x, som er 6 år gammel.
{% endhint %}

Jeg er ikke sikker på, hvad årsagen er, fordi vi alle er afhængige af en ekstern pakke til at håndtere LDAP- (også saml, oauth-) autentificering. Hvis det ikke virker, kan situationen være den samme for overleaf server pro, fordi vi blot sender alle miljøvariabler videre til den interne pakke; hvis der er nogle fejl, har vi i øjeblikket ingen idé.

**Så jeg anbefaler kraftigt, at vores brugere opsætter et udviklingsmiljø for at teste SSO med al kildekoden**, som er tilgængelig på [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). I udviklingsmiljøet kan du se alle logs i terminalen, hvilket gør det praktisk til fejlsøgning.

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