> 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/el/rythmisi/overleaf-toolkit/authentication.md).

# Πιστοποίηση

Αυτό το χαρακτηριστικό αναπτύχθηκε από [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Υποστηρίζονται 3 μέθοδοι αυθεντικοποίησης. Μετά τη ρύθμιση, μπορείτε να συνδεθείτε με τις ακόλουθες επιλογές, όπως δείχνει η παρακάτω εικόνα.

<figure><img src="/files/31583bb72c5ceb650c8f10444e3c4dd4e3394cdb" alt=""><figcaption></figcaption></figure>

Σας συνιστούμε ανεπιφύλακτα να χρησιμοποιήσετε OIDC, καθώς αυτή είναι η πιο γενική μέθοδος.

{% columns %}
{% column width="50%" %}
{% content-ref url="/spaces/ZJGXrTrphBgU7BMv4Phb/pages/4a0952126fb792ed8fcf4edb7af91ab627d36133" %}
[Ταυτοποίηση OIDC](/on-premises/el/rythmisi/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/ZJGXrTrphBgU7BMv4Phb/pages/664786b92cbc241c45dd3bdb23ef1702dad6749f" %}
[Ταυτοποίηση LDAP](/on-premises/el/rythmisi/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/ZJGXrTrphBgU7BMv4Phb/pages/a99b857204a405e68a6b701691974e87124b8ba8" %}
[Ταυτοποίηση SAML](/on-premises/el/rythmisi/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}

{% endcolumn %}
{% endcolumns %}

### Καθολική διαμόρφωση

Η μεταβλητή περιβάλλοντος `EXTERNAL_AUTH` απαιτείται για την ενεργοποίηση της συγκεκριμένης μονάδας αυθεντικοποίησης. Αυτή η μεταβλητή περιβάλλοντος καθορίζει ποιες εξωτερικές μέθοδοι αυθεντικοποίησης ενεργοποιούνται. Οι διαθέσιμες επιλογές είναι (με πεζά):

* saml
* ldap
* oidc

### Προτάσεις για SSO

Δοκίμασα saml, ldap, oauth για το Overleaf. Τόσο το saml όσο και το oauth λειτουργούν καλά στο Overleaf, αλλά το ldap εξαρτάται. Δεν μπορεί να λειτουργήσει καλά για <https://docs.goauthentik.io/>, αλλά λειτουργεί καλά στο openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
Πρέπει να ενημερώσουμε το passport-ldapauth, πρόσφατα προσπαθώ να δοκιμάσω το LDAP του Overleaf με <https://goauthentik.io/> , απέτυχε. Αφού ενημέρωσα το "passport-ldapauth" σε 3.0.0, όλα λειτουργούν καλά.

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

Η αρχική έκδοση είναι 2.x.x, η οποία είναι από πριν 6 χρόνια.
{% endhint %}

Δεν είμαι σίγουρος ποιος είναι ο λόγος, επειδή όλοι εξαρτόμαστε από ένα εξωτερικό πακέτο για την αυθεντικοποίηση LDAP (επίσης saml, oauth). Αν δεν λειτουργεί, η κατάσταση μπορεί να είναι η ίδια και για το Overleaf Server Pro, επειδή απλώς περνάμε όλες τις μεταβλητές περιβάλλοντος στο εσωτερικό πακέτο· αν υπάρχουν κάποια σφάλματα, προς το παρόν δεν έχουμε ιδέα.

**Άρα συνιστώ ανεπιφύλακτα στους χρήστες μας να στήσουν ένα περιβάλλον ανάπτυξης για να δοκιμάσουν το SSO με όλο τον πηγαίο κώδικα**, το οποίο είναι διαθέσιμο στο [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). Στο περιβάλλον ανάπτυξης, μπορείτε να δείτε όλα τα αρχεία καταγραφής στο τερματικό, κάτι που το καθιστά βολικό για αποσφαλμάτωση.

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