> 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/id/konfigurasi/overleaf-toolkit/authentication.md).

# Autentikasi

Fitur ini dikembangkan oleh [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Ada 3 metode autentikasi yang didukung. Setelah konfigurasi, Anda dapat login dengan opsi berikut, seperti yang ditunjukkan gambar di bawah.

<figure><img src="/files/79766fce67e90ac2af2e6854cdf2c8ceb53c3f11" alt=""><figcaption></figcaption></figure>

Kami sangat merekomendasikan Anda menggunakan OIDC, karena ini adalah metode yang paling umum.

{% columns %}
{% column width="50%" %}
{% content-ref url="/spaces/WM1f0K8rrBBYRzyHzFh0/pages/d878ef6dabccbd69ce14fe373d712dd9a46f2f92" %}
[Autentikasi OIDC](/on-premises/id/konfigurasi/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/WM1f0K8rrBBYRzyHzFh0/pages/825110287c8fc6a3a7b3ee7bc51cdcef5ab061df" %}
[Autentikasi LDAP](/on-premises/id/konfigurasi/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/WM1f0K8rrBBYRzyHzFh0/pages/79b48191ed1720a300de613695ca3710175ce19b" %}
[Autentikasi SAML](/on-premises/id/konfigurasi/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}

{% endcolumn %}
{% endcolumns %}

### Konfigurasi Global

Variabel lingkungan `EXTERNAL_AUTH` diperlukan untuk mengaktifkan modul autentikasi tertentu. Variabel lingkungan ini menentukan metode autentikasi eksternal mana yang diaktifkan. Opsi yang tersedia adalah (dalam huruf kecil):

* saml
* ldap
* oidc

### Saran untuk SSO

Saya telah menguji saml, ldap, oauth untuk overleaf. Baik saml maupun oauth bekerja dengan baik di overleaf, tetapi ldap, tergantung. Itu tidak bisa bekerja dengan baik untuk <https://docs.goauthentik.io/>, tetapi itu bekerja dengan baik di openLDAP (<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
Kita perlu memperbarui passport-ldapauth, baru-baru ini saya mencoba menguji overleaf ldap dengan <https://goauthentik.io/> , itu gagal. Setelah saya memperbarui "passport-ldapauth" ke 3.0.0, semuanya bekerja dengan baik.

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

Versi aslinya adalah 2.x.x, yang sudah 6 tahun lalu.
{% endhint %}

Saya tidak yakin apa alasannya, karena kita semua bergantung pada paket eksternal untuk melakukan autentikasi LDAP (juga saml, oauth). Jika tidak bekerja, situasinya bisa sama untuk overleaf server pro, karena kita hanya meneruskan semua variabel lingkungan ke paket internal; jika ada bug, saat ini kita tidak tahu.

**Jadi saya sangat merekomendasikan pengguna kami untuk menyiapkan lingkungan pengembangan untuk menguji SSO dengan semua kode sumber**, yang tersedia di [Setup Develop Environment (Local)](/dev/environment/setup-develop-environment-local.md). Dalam lingkungan pengembangan, Anda dapat melihat semua log di terminal, yang memudahkan untuk penggunaan debug.

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