Description: The first is to use these interfaces require users to login and authorization, Sina microblogging platform is open to provide two licensing methods, the first one is: OAuth Authorization, the second is: HTTP common authentication method, we use The first approach to authorization, but in the implementation process has encountered many problems, that a single open platform for microblogging Sina or some representative, so to share the experience, the following can download my Demo.
OAuth is an international license, it does not require users to third-party applications to enter a user name and password, so security is high
In fact, the performance of the steps in the program only four steps:
1, to obtain Request token.
2, the user authentication.
3, for Access token.
4, access to user information.
In dealing with OAuth authorization process I also encountered a few in the Sina forum open platform common to several issues, summarized here under, will be me
To Search:
File list (Check if you may need any files):
App_Code\OAuthBase.cs
Bin\HtmlAgilityPack.dll
...\HtmlAgilityPack.dll.refresh
...\HtmlAgilityPack.xml
...\Microsoft.Practices.ServiceLocation.dll
...\Microsoft.Practices.ServiceLocation.dll.refresh
Image\48.jpg
index.aspx
index.aspx.cs
Web.Config
wuyou.sln
wuyou.suo
51aspx源码必读.txt
App_Code
App_Data
Bin
Image