ويتشات
WeChat ✔️
Add WeChat OAuth Provider
لإضافة مزود ويتشات OAuth إلى تطبيقك، اتبع هذه الخطوات:
- قم بزيارة منصة مطوري ويتشات وسجل كمطور.
- بعد الموافقة على تطبيق الويب الخاص بك أو تطبيق الجوال، ستتلقى معرف التطبيق والسر الخاص بالتطبيق.
مزود ويتشات يقدم مجموعتين مختلفتين من أزواج المفاتيح:
الزوج الأول من المفاتيح (
Client ID
,Client Secret
) مخصص لـWeChat Open Platform (微信开放平台)
ومصمم لسيناريو تسجيل الدخول عبر الكمبيوتر الشخصي. يتيح لك عرض رمز الاستجابة السريعة QR في متصفح الكمبيوتر الشخصي، والذي يمكن للمستخدمين مسحه ضوئيًا باستخدام تطبيق ويتشات على هواتفهم المحمولة لتسجيل الدخول.الزوج الثاني من المفاتيح (
Client ID 2
,Client Secret 2
) وحقلAccess Token
مخصص لـWeChat Media Platform (微信公众平台)
وم intended for the inside-WeChat-app login scenario.Access Token
field is theToken
you fill in theserver configuration
of theWeChat Media Platform (微信公众平台)
. يمكّن المستخدمين من تسجيل الدخول باستخدام المتصفح المدمج في ويتشات داخل تطبيق ويتشات للجوال، والذي سيعيدهم إلىWeChat Official Account (微信公众号)
لتسجيل الدخول. يرجى ملاحظة أن ويتشات لا يدعم تسجيل الدخول خارج تطبيق ويتشات في متصفحات الجوال الأخرى أو التطبيقات. هذا القيد مفروض من قبل ويتشات وليس من قبل Casdoor.
إذا قمت بملء الزوج الثاني من المفاتيح (Client ID 2
, Client Secret 2
)، املأ حقل Access Token
وفعّل مفتاح Enable QR code
، ثم يمكنك اختيار تسجيل الدخول مباشرةً باستخدام المعلومات من WeChat Media Platform (微信公众平台)
بعد مسح رمز الاستجابة السريعة QR، أو استخدام المعلومات من WeChat Open Platform (微信开放平台)
لتسجيل الدخول، إذا اخترت use Wechat Open Platform to login
، بعد أن يتابع المستخدم الحساب الرسمي لويتشات (微信公众号)، سيُطلب من المستخدمين مسح رمز الاستجابة السريعة QR لـ WeChat Open Platform (微信开放平台)
لتسجيل الدخول. Casdoor سيطلب من المستخدم متابعة الحساب الرسمي لويتشات (微信公众号) قبل المتابعة في عملية تسجيل الدخول عندما ينقر المستخدم على زر ويتشات لتسجيل الدخول. من المهم ملاحظة أن هذه الوظيفة متاحة فقط في سيناريو تسجيل الدخول عبر الكمبيوتر الشخصي لأن الهاتف المحمول لا يمكنه مسح رمز الاستجابة السريعة QR بنفسه. عند استخدامه في سيناريو الجوال (أي المتصفح المدمج في تطبيق ويتشات للجوال)، سيقوم Casdoor تلقائيًا بتخطي هذه الخطوة.
You can choose whether to enable the WeChat QR code login option on the setting page. To do so, add the WeChat provider in your application configuration and add the WeChat option in your signin methods. Once added, the login page will display a "WeChat" tab as a login option, allowing users to log in by scanning the QR code.
The QR code login process is as follows:
- On the login page, after selecting the "WeChat" tab, a WeChat QR code will be automatically loaded and displayed.
- The user scans the QR code using the WeChat app and completes the authorization to log in.
- If the QR code expires or needs to be refreshed, the user can click the "Refresh" link below the QR code to obtain a new one.
نوصي بضبط كلا مجموعتي المفاتيح في نفس الوقت وربط حساب WeChat Open Platform (微信开放平台)
وحساب WeChat Media Platform (微信公众平台)
معًا داخل WeChat Open Platform (微信开放平台)
. هذا سيسمح لـ Casdoor بالتعرف على مستخدم ويتشات الذي يسجل الدخول من خلال الكمبيوتر الشخصي والجوال كمستخدم واحد.
بسبب قيود ويتشات OAuth، لا يوجد حاليًا طريقة لتسجيل الدخول عبر ويتشات في تطبيق جوال طرف ثالث أو في متصفح جوال غير تطبيق ويتشات. يجب أن يحدث تسجيل الدخول عبر الجوال داخل تطبيق ويتشات في الوقت الحالي.
لمزيد من المعلومات التفصيلية، يرجى زيارة WeChat Open Platform.
Enable WeChat QR Code Login
You can choose whether to enable the WeChat QR code login option on the setting page. To do so, add the WeChat provider in your application configuration and add the WeChat option in your signin methods. Once added, the login page will display a "WeChat" tab as a login option, allowing users to log in by scanning the QR code.
The QR code login process is as follows:
- On the login page, after selecting the "WeChat" tab, a WeChat QR code will be automatically loaded and displayed.
- The user scans the QR code using the WeChat app and completes the authorization to log in.
- If the QR code expires or needs to be refreshed, the user can click the "Refresh" link below the QR code to obtain a new one.