Go: Sina OAuth request_token how to store

Source: Internet
Author: User

The resources are as follows:

  1. jquery1342660045312= > Sina's OAuth API address
  2. Sina Weibo open Platform OAuth licensing solution (including code )

The tangled problem is this:

  1. Sina uses is OAuth 1.0, before the user authorizes the authentication, needs the gentleman to become Request_token
  2. How should request_token be stored?
  3. The recommendations in the SDK are stored in session, but if I have multiple front-end machines, DNS parsing is not reliable, then how many of my machines synchronized session?
  4. Session stored in the database to avoid this problem, but the problem is that my business does not need to use the database, in order to store a temporary session of the library, it is not cost-effective.
  5. stored in cookies, the problem of multiple front-end machines do not care, but whether there will be unsafe factors?
  6. Can a cookie store a string that is Memcache key, and is it possible to store this one-off request_token by mem?
  7. Other people get Cookie,cookie can add some verification, such as the signature and other things, is not a random transformation can destroy my program.

The analysis process is roughly as above, concrete how to realize still tangled!

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.