jxnkwlp / Microsoft.Owin.Security.QQ-WebChat

QQ and Webchat extensions for Microsoft.Owin.Security

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C# 72.6%Language:HTML 20.2%Language:JavaScript 6.7%Language:CSS 0.3%Language:ASP 0.1%