Skip to content

jxnkwlp/Microsoft.Owin.Security.QQ-WebChat

Repository files navigation

Microsoft.Owin.Security Extensions

QQ and Webchat extensions for Microsoft.Owin.Security

For dotnet core 1.1 and 2.0

https://github.com/jxnkwlp/AspNetCore.AuthenticationQQ-WebChat

Get Started

  • 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(); 
  • QQ
    // config 
    app.UseQQAuthentication("[you appId]", "[you app Secret]");

    // get external login info 
    var qqInfo = await AuthenticationManager.GetExternalQQLoginInfoAsync();    

Microsoft.Owin.Security 扩展

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();   
    
  • QQ
    // 配置 
    app.UseQQAuthentication("[you appId]", "[you app Secret]");  

    // 获取QQ登录者信息
    var qqInfo = await AuthenticationManager.GetExternalQQLoginInfoAsync();    

About

QQ and Webchat extensions for Microsoft.Owin.Security

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published