Sina Weibo oauth third-party login C # source code download

Source: Internet
Author: User
Tags oauth

Integrates the service of using the Sina Weibo account to log on to a third-party website, that is, when you come to a new website, you can log on using the Sina Weibo account without having to register.

 

This kind of Weibo connection service is a service provided by the Weibo open platform to third-party websites. This service includes identity authentication, user relationship, and content transmission. Users connected to Weibo can log on to a third-party website through their Weibo accounts, share content, and synchronize information. By using the service connected to Weibo, third-party websites can not only lower the threshold for user registration, but also allow users to share website content with Weibo users more quickly, in this way, the website traffic and information can be further transmitted and shared.

 

The specific effect is:

1. Place the "connect to Weibo" button near the website login page to display the"Log On with the Sina Weibo account"

2. the user clicks and jumps to the Weibo authorization page. Enter the Sina Weibo user name and password.

3. Sina will be authorized to access third-party websites after passing user authentication.

 

For more information, see this webpage.

 


To use the APIs (applications) provided by the Sina Weibo Open PlatformProgramInterface), you need to register an application first. We will give each application an exclusive app key and app secret. The key and secret are used in a similar way as the public key and private key in some other protocols. You can useProgramming LanguageThe key and secret are combined to add a signature for each request sent by you to demonstrate the legitimacy of your identity to the Sina meager open platform.

Web applications should use complete oauth for user authentication. Oauth should also be used for desktops and mobile users. Of course, basic auth can also be used for desktop and mobile apps, a simple authentication method by user name and password. For details, seeAuthorization Mechanism descriptionPage.

 

Basic oauth process:

 

 

For details about the API calling process, refer to this page.

 

Summary:Sina's oauth is indeed troublesome,C # implementation is much more complicated than Google's oauth, So I shared a C #Source code, ClickHereDownload. CodeRun the. NET Framework 3.5 or later, vs2008 or later.ApikeyAndApikeysecretReplace the key you have applied for on the Sina Weibo open platform. If the Code does not understand, contact me. If you need Google's oauth call code, you can also contact me.

 

Oauth libraries and resources in other languages:

 

 

ActionScript/flash
Oauth-as3 http://code.google.com/p/oauth-as3/
A flex oauth client http://www.arcgis.com/home/item.html? Id = ff6ffa302ad04a7194999f2ad08250d7
C/C ++
Http://github.com/minimoog/QTweetLib qtweetlib
Liboauth http://liboauth.sourceforge.net/
Clojure
CLJ-oauth http://github.com/mattrepl/clj-oauth
. Net
Oauth-dot-net http://code.google.com/p/oauth-dot-net/
Dotnetopenauth http://www.dotnetopenauth.net/
Erlang
Erlang-oauth http://github.com/tim/erlang-oauth
Java
Scrible http://github.com/fernandezpablo85/scribe-java
Oauth-Signpost http://code.google.com/p/oauth-signpost/
Javascript
Oauth in JS http://oauth.googlecode.com/svn/code/javascript/
Objective-C/cocoa & iPhone Programming
Oauthcore http://bitbucket.org/atebits/oauthcore
Http://code.google.com/p/mpoauthconnection/ for mpoauthconnection
Objective-C oauth http://oauth.googlecode.com/svn/code/obj-c/
Perl
Net: oauth http://oauth.googlecode.com/svn/code/perl/
PHP
Tmhoauth http://github.com/themattharris/tmhOAuth
Http://code.google.com/p/oauth-php/ for oauth-PHP
Python
Python-oauth2 http://github.com/brosner/python-oauth2
Qt
Qoauth http://github.com/ayoy/qoauth
Ruby
Oauth Ruby gemhttp://oauth.rubyforge.org/
Scala
Databinder dispatch http://dispatch.databinder.net/About

 

 

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.