Scan the code to log on to JAVA and scan java
Reference (Development Platform): https://open.weixin.qq.com/cgi-bin/showdocument? Action = dir_list & t = resource/res_list & verify = 1 & id = open1419425518 & lang = zh_CN
Summary (implementation process ):
A. Registration (Pay): Get the appid, secret, and the domain name to jump to after setting the scan code
B. Obtain the code
C. Obtain access_token and openid
D. obtain user information
E. determine that the user is associated with the target system and proceed to the next step.
Procedure
A: see references.
B: According to appid, redirect_uri gets code: appid step A gets, redirect_uri is A request containing the domain name given by step
Https://open.weixin.qq.com/connect/qrconnect? Appid =$ {appid} & redirect_uri =$ {redirect_uri} & response_type = code & scope = snsapi_login & state = wxLogin
B1. generate a QR code (Instance)
<Script src = "http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"> </script>
<Div class = "main impowerBox">
<Div class = "loginPanel normalPanel">