QQ and Webchat extensions for Microsoft.Owin.Security
https://github.com/jxnkwlp/AspNetCore.AuthenticationQQ-WebChat
- Webchat
// config
app.UseWeixinAuthentication("[you appId]", "[you app Secret]");
// get external login info
var weixinInfo = await AuthenticationManager.GetExternalWeixinLoginInfoAsync();
- Webchat MP
// mp config
app.UseWeixinAuthentication(new WeixinMPAuthenticationOptions{
AppId = "[you appId]",
AppSecret = "[you app Secret]"
});
// get external login info
var weixinInfo = await AuthenticationManager.GetExternalWeixinLoginInfoAsync();
// config
app.UseQQAuthentication("[you appId]", "[you app Secret]");
// get external login info
var qqInfo = await AuthenticationManager.GetExternalQQLoginInfoAsync();
QQ 和微信 Owin 扩展
- 微信
// 配置
app.UseWeixinAuthentication("[you appId]", "[you app Secret]");
// 获取微信登录者信息
var weixinInfo = await AuthenticationManager.GetExternalWeixinLoginInfoAsync();
- 微信公众号
// 配置
app.UseWeixinAuthentication(new WeixinMPAuthenticationOptions{
AppId = "[you appId]",
AppSecret = "[you app Secret]"
});
// 获取微信登录者信息
var weixinInfo = await AuthenticationManager.GetExternalWeixinLoginInfoAsync();
// 配置
app.UseQQAuthentication("[you appId]", "[you app Secret]");
// 获取QQ登录者信息
var qqInfo = await AuthenticationManager.GetExternalQQLoginInfoAsync();