> 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/ko/configuration/overleaf-toolkit/authentication.md).

# 인증

이 기능은 [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). 지원되는 인증 방법은 3가지입니다. 구성 후 아래 이미지에 보이는 다음 옵션으로 로그인할 수 있습니다.

<figure><img src="/files/d29a58c8126dade52446d2e915e6ba41e7cc0bf0" alt=""><figcaption></figcaption></figure>

이 방법이 가장 일반적인 방법이므로 OIDC 사용을 강력히 권장합니다.

{% columns %}
{% column width="50%" %}
{% content-ref url="/spaces/pHboEFqEMx7veCRU8NeS/pages/01d94318f18b3f1ee940a38621455a1c1c693fc3" %}
[OIDC 인증](/on-premises/ko/configuration/overleaf-toolkit/authentication/oidc-authentication.md)
{% endcontent-ref %}

{% content-ref url="/spaces/pHboEFqEMx7veCRU8NeS/pages/2c4c0f6f3862912783a59500418b9761ad2122cc" %}
[LDAP 인증](/on-premises/ko/configuration/overleaf-toolkit/authentication/ldap-authentication.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/spaces/pHboEFqEMx7veCRU8NeS/pages/0eaacddf9b54e2f68aad26882d27164544a30156" %}
[SAML 인증](/on-premises/ko/configuration/overleaf-toolkit/authentication/saml-authentication.md)
{% endcontent-ref %}

{% endcolumn %}
{% endcolumns %}

### 전역 구성

환경 변수 `EXTERNAL_AUTH` 특정 인증 모듈을 활성화하려면 필요합니다. 이 환경 변수는 활성화할 외부 인증 방법을 지정합니다. 사용 가능한 옵션은 다음과 같습니다(소문자):

* saml
* ldap
* oidc

### SSO를 위한 제안

Overleaf에서 saml, ldap, oauth를 테스트했습니다. saml과 oauth는 Overleaf에서 잘 작동하지만, ldap는 경우에 따라 다릅니다. 잘 작동하지 않습니다 <https://docs.goauthentik.io/>, 하지만 openLDAP에서는 잘 작동합니다(<https://github.com/rroemhild/docker-test-openldap>).

{% hint style="info" %}
passport-ldapauth를 업데이트해야 합니다. 최근에 저는 다음을 사용해 Overleaf LDAP를 테스트해 보려고 했습니다 <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/ko/configuration/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.
