WeChat QR code logon-JAVA, WeChat scan-java

Source: Internet
Author: User

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">

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.