# 微信授权 **Repository Path**: fly007/weixiOauthor ## Basic Information - **Project Name**: 微信授权 - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-02-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微信授权 参考博客:https://www.cnblogs.com/liuhongfeng/p/5099149.html 官方的请求链接: https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect 需要修改的地方: (1)替换自己的AppID (2)将redirect_url换成自己的授权请求链接URL。注意这个连接需要经过UTF-8编码。使用:TestURL类进行编码 (3)需要修改scope。需要弹出页面则要修改为snsapi_userinfo 。 请求: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe788bb4f278c58c3&redirect_uri=http%3A%2F%2F19n8i58925.51mypc.cn%2Fchapter-06%2FoauthServlet&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect