https://github.com/venwyhk/spring-social-wechat
基于spring-social微信第三方登录实现,支持微信开放平台、微信公众平台和企业微信。
https://github.com/venwyhk/spring-social-wechat
java oauth2 spring-boot spring-social wechat wecom
Last synced: 11 months ago
JSON representation
基于spring-social微信第三方登录实现,支持微信开放平台、微信公众平台和企业微信。
- Host: GitHub
- URL: https://github.com/venwyhk/spring-social-wechat
- Owner: venwyhk
- License: apache-2.0
- Created: 2018-10-16T22:10:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-08T10:59:51.000Z (almost 3 years ago)
- Last Synced: 2024-12-20T19:32:44.054Z (over 1 year ago)
- Topics: java, oauth2, spring-boot, spring-social, wechat, wecom
- Language: Java
- Homepage:
- Size: 126 KB
- Stars: 33
- Watchers: 2
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://maven-badges.herokuapp.com/maven-central/com.ikasoa/spring-social-wechat)
# spring-social-wechat #
## Installing ##
Production releases are available on *Maven Central*.
### In Gradle: ###
```groovy
implementation 'com.ikasoa:spring-social-wechat:${version}'
```
### Or in Maven: ###
```xml
com.ikasoa
spring-social-wechat
${version}
```
## Properties Example ##
You can set multiple providers in your system.
*[AppId]*, *[AppSecret]* and other parameters can be obtained from the provider website.
### application.yml for *WeChat Open Platform*: ###
```
spring:
social:
wechat:
app-id: [AppId]
app-secret: [AppSecret]
```
### application.yml for *WeChat Official Accounts Platform*: ###
```
spring:
social:
wechatmp:
app-id: [AppId]
app-secret: [AppSecret]
```
### application.yml for *WeChat Work*: ###
```
spring:
social:
wecom:
app-id: [AppId]
agent-id: [AgentId]
app-secret: [Secret]
```
### Providers and Parameters: ###
Provider Name
Provider Id
Authorization Type
Parameters
Required
(if you use this platform)
Default
WeChat Open Platform
wechat
QR Code
spring.social.wechat.app-id
yes
spring.social.wechat.app-secret
yes
spring.social.wechat.check-state
no
true
WeChat Official Accounts Platform
wechatmp
Webpage
spring.social.wechatmp.app-id
yes
spring.social.wechatmp.app-secret
yes
spring.social.wechatmp.check-state
no
true
WeChat Work
wecom
QR Code
spring.social.wecom.app-id
yes
spring.social.wecom.agent-id
yes
spring.social.wecom.app-secret
yes
spring.social.wechat.check-state
no
true
## HTML Example ##
This *[ProviderId]* must be *'wechat'*, *'wechatmp'* or *'wecom'*. It depends on the provider you choose. (please refer to the table above)
```html
Log in
```
## Sample ##
[spring-social-wechat-sample](https://github.com/venwyhk/spring-social-wechat-sample)
***
[](https://creativecommons.org/licenses/by-nc-sa/4.0/)