ภาพรวม
Casdoor uses providers to offer third-party services for the platform. ในบทนี้ คุณจะเรียนรู้วิธีการเพิ่มผู้ให้บริการเข้าไปใน Casdoor
สิ่งที่เรามี
Currently, we have eight types of providers:
ผู้ให้บริการ OAuth
Casdoor อนุญาตให้ผู้ใช้เข้าสู่ระบบผ่านแอปพลิเคชัน OAuth อื่นๆ คุณสามารถเพิ่ม GitHub, Google, QQ และแอปพลิเคชัน OAuth อื่นๆ เข้าไปใน Casdoor For more details, refer to the OAuth section.
ผู้ให้บริการ SMS
Casdoor sends SMS messages to users when they need to verify their phone numbers. SMS providers are used to send SMS messages in Casdoor.
ผู้ให้บริการอีเมล
ผู้ให้บริการอีเมลคล้ายกับผู้ให้บริการ SMS
ผู้ให้บริการจัดเก็บข้อมูล
Casdoor อนุญาตให้ผู้ใช้เก็บไฟล์โดยใช้ระบบไฟล์ในเครื่องหรือบริการ OSS บนคลาวด์
ผู้ให้บริการการชำระเงิน
Casdoor สามารถเพิ่มผู้ให้บริการการชำระเงิน ซึ่งจะถูกใช้เพื่อเพิ่มวิธีการชำระเงินให้กับสินค้าบนหน้าสินค้า ปัจจุบัน ผู้ให้บริการการชำระเงินที่ได้รับการสนับสนุน ได้แก่ Alipay, WeChat Pay, PayPal และ GC
ผู้ให้บริการ Captcha
Casdoor รองรับการกำหนดค่า captcha ในการไหลของผู้ใช้ ปัจจุบัน ผู้ให้บริการ captcha ที่ได้รับการสนับสนุน ได้แก่ Default Captcha, reCAPTCHA, hCaptcha, Alibaba Cloud Captcha และ Cloudflare Turnstile
ID Verification Providers
Casdoor supports identity verification for users through ID Verification providers. Users can verify their real-world identity by submitting ID card information, which is validated through third-party verification services like Jumio.
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 เพื่อข้อมูลเพิ่มเติม

สุดท้าย บันทึก การกำหนดค่า คุณสามารถลองใช้ผู้ให้บริการในแอปพลิเคชันของคุณได้แล้ว