Awesome Open Source
Awesome Open Source

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();    


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
C Sharp (166,623
Qq (5,000
Owin (460
Webchat (338
Oath2 (11