#Sina and Tencent open authentication provider of OWIN#
##Installation##
Use following command to install each package in your project
Install-Package Microsoft.Owin.Security.Sina
and
Install-Package Microsoft.Owin.Security.Tencent
##Getting Started##
Before you use these package,i assume you already created your own application in connect.qq.com or open.weibo.com.
- Create an asp.net 5 web application ,and select 'MVC' template.do not change authentication setting.
- Install these providers
- Open
Startup.Auth.cs
file,add following namespacesMicrosoft.Owin.Security.Sina
Microsoft.Owin.Security.Tencent
- add following code section with your 'appId' and 'secretId'.
app.UseSinaAuthentication("YOUR APP ID", "YOUR SECRET ID");
app.UseTencentAuthentication("YOUR APP ID", "YOUR SECRET ID");
- Try to run your application with the domain address you designated in management center of each open platform