نظرة عامة
Casdoor uses providers to offer third-party services for the platform. في هذا الفصل، ستتعلم كيفية إضافة المزودين إلى Casdoor.
ما لدينا
Currently, we have seven types of providers:
مزودو OAuth
يسمح Casdoor للمستخدمين بتسجيل الدخول من خلال تطبيقات OAuth الأخرى. يمكنك إضافة GitHub وGoogle وQQ والعديد من تطبيقات OAuth الأخرى إلى Casdoor. For more details, refer to the OAuth section.
مزودو خدمة الرسائل القصيرة
Casdoor sends SMS messages to users when they need to verify their phone numbers. SMS providers are used to send SMS messages in Casdoor.
مزودو البريد الإلكتروني
مزودو البريد الإلكتروني مشابهون لمزودي خدمة الرسائل القصيرة.
مزودو التخزين
يسمح Casdoor للمستخدمين بتخزين الملفات باستخدام نظام الملفات المحلي أو خدمات OSS السحابية.
مزودو الدفع
يمكن لـ Casdoor إضافة مزودي الدفع، والتي ستستخدم لإضافة طرق الدفع إلى المنتجات في صفحة المنتج. حاليًا، المزودون المدعومون للدفع يشملون Alipay وWeChat Pay وPayPal وGC.
مزودو الكابتشا
يدعم Casdoor الكابتشا القابل للتكوين في تدفقات المستخدم. حاليًا، مزودو التحقق البشري المدعومون يشملون التحقق البشري الافتراضي، reCAPTCHA، hCaptcha، التحقق البشري من Alibaba Cloud، و Cloudflare Turnstile.
MFA Providers
Casdoor supports external authentication servers for multi-factor authentication. Currently supports RADIUS servers for authenticating users as a second factor during login.
كيفية التكوين والاستخدام
نطاق
Providers have different scopes determined by their creator. Only Administrators have permission to add and configure providers. هناك نوعان من المدراء في Casdoor:
Global Administrator: All users under the
built-inorganization and users who have enabledIsGlobalAdmin. Providers created by Global Administrators can be used by all applications.Organization Administrator: Users who have enabled
IsAdmin. Providers created by Organization Administrators can only be used by applications under the same organization (under development...).
إضافة إلى التطبيق
اتبع الخطوات أدناه لإضافة المزودين إلى تطبيقك. Note that you cannot use a provider in your application until you have added it.
اذهب إلى صفحة تعديل التطبيق وأضف صف مزود جديد.

اختر مزودًا تريد إضافته إلى التطبيق. You will see all providers that the application can use.

بالنسبة لمزودي OAuth وCaptcha، يمكنك تكوين استخدامهم. انظر OAuth وCaptcha لمزيد من المعلومات.

أخيرًا، احفظ التكوين. يمكنك الآن محاولة استخدام المزود في تطبيقك.