Info
Version: | 1.0.0.4 |
Author(s): | 曹明杰 |
Last Update: | Saturday, April 1, 2017 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Cmj.Owin.Security |
Install
Install-Package Cmj.Owin.Security
dotnet add package Cmj.Owin.Security
paket add Cmj.Owin.Security
Cmj.Owin.Security Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.Owin(>= 3.0.1)
- Microsoft.Owin.Security(>= 3.0.1)
- Microsoft.Owin.zh-Hans(>= 3.0.1)
- Microsoft.Owin.Security.zh-Hans(>= 3.0.1)
- Newtonsoft.Json(>= 9.0.1)
- Owin(>= 1.0.0)
- 微信
// 配置
app.UseWeixinAuthentication(new WeiXinAuthenticationOptions{
AppId = "[you appId]",
AppSecret = "[you app Secret]"
});
// 获取微信登录者信息
var weixinInfo = await AuthenticationManager.GetExternalWeiXinLoginInfoAsync();
- 微信公众号
// 配置
app.UseWeixinAuthentication(new WeiXinMPAuthenticationOptions{
AppId = "[you appId]",
AppSecret = "[you app Secret]"
});
// 获取微信登录者信息
var weixinInfo = await AuthenticationManager.GetExternalWeiXinLoginInfoAsync();.