spring social wechat
spring-social-wechat-1.4.1
إصدارات الإنتاج متاحة على Maven Central .
implementation ' com.ikasoa:spring-social-wechat:${version} '
< dependency >
< groupId >com.ikasoa</ groupId >
< artifactId >spring-social-wechat</ artifactId >
< version >${version}</ version >
</ dependency >
يمكنك تعيين موفري خدمات متعددين في نظامك.
يمكن الحصول على [AppId] و [AppSecret] ومعلمات أخرى من موقع الويب الخاص بالموفر.
spring:
social:
wechat:
app-id: [AppId]
app-secret: [AppSecret]
spring:
social:
wechatmp:
app-id: [AppId]
app-secret: [AppSecret]
spring:
social:
wecom:
app-id: [AppId]
agent-id: [AgentId]
app-secret: [Secret]
اسم المزود | معرف المزود | نوع التفويض | حدود | مطلوب (إذا كنت تستخدم هذا النظام الأساسي) | تقصير |
---|---|---|---|---|---|
منصة WeChat المفتوحة | com.wechat | رمز الاستجابة السريعة | Spring.social.wechat.app-id | نعم | |
Spring.social.wechat.app-secret | نعم | ||||
Spring.social.wechat.check-state | لا | حقيقي | |||
منصة الحسابات الرسمية WeChat | com.wechatmp | صفحة على الإنترنت | Spring.social.wechatmp.app-id | نعم | |
Spring.social.wechatmp.app-secret | نعم | ||||
Spring.social.wechatmp.check-state | لا | حقيقي | |||
عمل وي شات | com.wecom | رمز الاستجابة السريعة | Spring.social.wecom.app-id | نعم | |
Spring.social.wecom.agent-id | نعم | ||||
Spring.social.wecom.app-secret | نعم | ||||
Spring.social.wechat.check-state | لا | حقيقي |
يجب أن يكون [ProviderId] هذا "wechat" أو "wechatmp" أو "wecom" . ذلك يعتمد على المزود الذي تختاره. (يرجى الرجوع إلى الجدول أعلاه)
< form action =" /signin/[ProviderId] " method =" POST " >
< button type =" submit " > Log in </ button >
</ form >
عينة الربيع الاجتماعية Wechat