General public number development how to do identity authentication?

Source: Internet
Author: User
Tags oauth openid
The public number is available via OAuth for user OpenID, but is it always a request? Or will it take a session or a localstorage program?

Reply content:

The public number is available via OAuth for user OpenID, but is it always a request? Or will it take a session or a localstorage program?

The first time must be to do OAuth, get to OpenID or Unionid saved to your background, and then return to the User a SID (session ID), generally this SID is placed into the client's cookie in the server, note that the setting cookie when the client expires The expiration time between the session and the server is the same. It is certainly possible to deposit Sid Localstorage, but a bit of non-mainstream is not recommended.

After authorization to get the OpenID in your session, the session storage time is not long, you need to skip to the authorization page when you do not get to OpenID in session to pull the user information, because the page authorization to get the user interface does not have the number of calls limit all need not worry

Https://github.com/thenbsp/wechat/blob/master/documentation/oauth.md

  • 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.