> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# المصادقة

<Info>
  طُوّرت هذه الميزة بواسطة [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep).
</Info>

هناك 3 طرق مصادقة مدعومة. بعد الإعداد، يمكنك تسجيل الدخول باستخدام الخيارات التالية، كما توضح الصورة أدناه.

<Frame>
  <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/on-premises/image-33.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=fd0bdcc31b169d87dea8fc5fa612da9c" alt="" width="2526" height="1721" data-path="images/on-premises/image-33.png" />
</Frame>

نوصي بشدة باستخدام OIDC، لأنها الطريقة الأكثر عمومية.

<Columns cols={2}>
  <Column>
    <Card title="مصادقة OIDC" icon="file-lines" href="/ar/on-premises/configuration/overleaf-toolkit/authentication/oidc-authentication" horizontal />

    <Card title="مصادقة LDAP" icon="file-lines" href="/ar/on-premises/configuration/overleaf-toolkit/authentication/ldap-authentication" horizontal />
  </Column>

  <Column>
    <Card title="مصادقة SAML" icon="file-lines" href="/ar/on-premises/configuration/overleaf-toolkit/authentication/saml-authentication" horizontal />
  </Column>
</Columns>

### الإعداد العام

متغير البيئة `EXTERNAL_AUTH` مطلوب لتفعيل وحدة المصادقة المحددة. يحدد متغير البيئة هذا طرق المصادقة الخارجية المفعّلة. الخيارات المتاحة هي (بأحرف صغيرة):

* saml
* ldap
* oidc

### اقتراحات بشأن SSO

لقد اختبرت saml وldap وoauth مع Overleaf. تعمل كل من saml وoauth بشكل جيد في Overleaf، أما ldap فيعتمد الأمر. فهي لا تعمل بشكل جيد مع [https://docs.goauthentik.io/](https://docs.goauthentik.io/)، لكنها تعمل جيدًا مع openLDAP ([https://github.com/rroemhild/docker-test-openldap](https://github.com/rroemhild/docker-test-openldap)).

<Info>
  نحتاج إلى تحديث passport-ldapauth؛ فقد حاولت مؤخرًا اختبار LDAP في Overleaf مع [https://goauthentik.io/](https://goauthentik.io/)، وفشل الاختبار. وبعد أن حدّثت "passport-ldapauth" إلى 3.0.0، عمل كل شيء بشكل جيد.

  ```text theme={null}
  "passport-ldapauth": "^3.0.0",
  ```

  كان الإصدار الأصلي 2.x.x، وهو يعود إلى ما قبل 6 سنوات.
</Info>

لست متأكدًا من السبب، لأننا جميعًا نعتمد على حزمة خارجية لإجراء مصادقة LDAP (وكذلك saml وoauth). وإذا لم تعمل، فقد يكون الوضع نفسه في Overleaf Server Pro، لأننا نمرّر جميع متغيرات البيئة إلى الحزمة الداخلية فحسب، وإذا كانت هناك بعض الأخطاء البرمجية، فليست لدينا فكرة عنها حاليًا.

**لذلك أوصي بشدة مستخدمينا بإعداد بيئة تطوير لاختبار SSO مع الشيفرة المصدرية الكاملة**، وهو متاح في [إعداد بيئة التطوير (محليًا)](/ar/dev/environment/setup-develop-environment-local "mention"). في بيئة التطوير، يمكنك رؤية جميع السجلات في الطرفية، مما يسهّل عملية تصحيح الأخطاء.

\\

<br />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.