-
Notifications
You must be signed in to change notification settings - Fork 6
OAuth2
Hippoom edited this page Jun 29, 2017
·
3 revisions
The starter provides a built-in HTTP endpoint which redirects the user agent to finish WeChat OAuth2 protocol.
The URI is /wechat/oauth/authorize. The user agent is allowed to specify the URI to redirect to once the OAuth2 protocol succeeds, this can be done by using the query parameter named origin, the redirect URI should be URL encoded:
window.location.href = "/wechat/oauth/authorize?origin=" + encodeURIComponent(window.location.href);Currently, you need to provide the base URI of your MP application in the application{-profile}.properties or application{-profile}.yml, the URI should be registered in your MP admin console(see Web-based Authorization Callback Domain Name section for detail)
wechat:
mp:
appBaseUri: https://98867544.ap.ngrok.io- Quick start
- weixin-java-mp support
- Autowiring WxMpConfigStorage
- API support
- Inbound messaging
- Identity & Access
- JS SDK support
- Testing
- Release notes