# أمان Auth0

## 🔐 ما هي أمان Auth0؟

باستخدام [Auth0](https://www.auth0.com) عنصر أمان يمكنك دمج استبياناتك باستخدام بنية Auth0 الموجودة لديك لمصادقة المستخدمين قبل المشاركة في الاستبيان.&#x20;

باستخدام Auth0 يمكنك تقييد الوصول وطلب بيانات تسجيل الدخول باستخدام أي موفر مستخدم مفعل في حساب Auth0 الخاص بك مثل Active Directory أو LinkedIn أو Google أو حسابات FaceBook.

{% hint style="info" %}
يمكنك استخدام [data attributes](/ar/form-management/security/data-attributes.md) لتمرير أو استخدام سمات المستخدم المسجل دخولها عبر Auth0 في نصوص الاستبيان الخاصة بك أو [منطق الاستبيان](/ar/form-management/form-designer/condition-rules.md).&#x20;
{% endhint %}

## 🚀 إعداد Auth0

لتهيئة أمان Auth0 تحتاج إلى إنشاء في [حساب Auth0](https://manage.auth0.com/) تطبيق و API للجهة الخلفية.

لإنشاء التطبيق انتقل إلى قسم إدارة Auth0 و **أنشئ التطبيق.**

![](/files/ea5a81ff83165cbc4fd78c6ebc7dcf893b05442c)

اختر **Single Page Web Applications** كنوع لتطبيقك

![](/files/6d5c84c65368b0bee7f9bbf2de80faac307d3bb1)

في إعدادات تطبيقك عيّن السماح بعناوين **Callback URLs** إلى `https://www.ngsurvey.com/s/auth0redirect`&#x20;

![](/files/ba1c48d59f1a07b2d23894c05ad4428e0746d962)

{% hint style="warning" %}
إذا كنت تستخدم نسخة مستضافة ذاتياً على الخوادم المحلية فتأكد من استبدال مجال [www.ngsurvey.com](http://www.ngsurvey.com) بالمجال الذي يشغّل مثيل ngSurvey الخاص بك.  &#x20;
{% endhint %}

بمجرد إعداد تطبيقك انسخ من علامة تبويب الإعدادات الخاصة به **Domain** و **Client ID**  والصق القيم في إعدادات عنصر الأمان الخاص بـ ngSurvey.

![](/files/9a7c229d0df016fbb24554e917a852d7299f0275)

ارجع إلى [قسم إدارة Auth0](https://manage.auth0.com/) وفي قسم API **أنشئ API جديدة.**

![](/files/4e8f1aa40354bd27a3abecbb22c4ed0446fe58cb)

أنشئ الـ API الجديدة باستخدام معرف فريد.

![](/files/ec12070ee6ce6ae4339a916217fda22c06311a63)

انسخ **Identifier** وألصقه في إعدادات عنصر أمان Auth0 في ngSurvey.

![](/files/4e7aa71e6c7ea06ff1eee6be71d8c4467c134f1f)

هذا كل شيء! أصبح استبيانك الآن متاحاً فقط للمستخدمين الذين تم التحقق من هويتهم باستخدام إعدادات خادم Auth0 الخاصة بك.

## 🔅 خصائص أمان Auth0

* **`Domain`** هو مجال Auth0 الخاص بك.&#x20;
* **`Client Id`** معرف العميل لتطبيقك من نوع single page application في Auth0.
* **`Identifier / Audience`** معرف الجمهور (audience) لواجهة الويب API الخاصة بـ Auth0.
* **`السماح بإرسال متعدد`** هل يمكن للمستجيب المشاركة عدة مرات في نفس الاستبيان؟


---

# Agent Instructions: 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:

```
GET https://docs.ngsurvey.com/ar/form-management/security/security-items/auth0-security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
