Example #1
0
 /// <summary>
 /// 注入微信WebJwt认证
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="cissyConfigBuilder"></param>
 /// <param name="AuthenticationScheme"></param>
 /// <returns></returns>
 public static bool UseWeiXinWebJwt <T>(this CissyConfigBuilder cissyConfigBuilder) where T : WeiXinWebJwtAuthBaseController
 {
     cissyConfigBuilder.UseWeiXin <T>(BaseAuthController.DefaultSchemeName, true, WeiXinAppType.Web);
     return(false);
 }
Example #2
0
 /// <summary>
 /// 注入微信WebCookie认证
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="cissyConfigBuilder"></param>
 /// <param name="AuthenticationScheme"></param>
 /// <returns></returns>
 public static bool UseWeiXinWebCookie <T>(this CissyConfigBuilder cissyConfigBuilder, string AuthenticationScheme) where T : WeiXinWebCookieAuthBaseController
 {
     cissyConfigBuilder.UseWeiXin <T>(AuthenticationScheme, false, WeiXinAppType.Web);
     return(true);
 }
Example #3
0
 /// <summary>
 /// 注入微信小程序Jwt认证
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="cissyConfigBuilder"></param>
 /// <param name="AuthenticationScheme"></param>
 /// <returns></returns>
 public static bool UseWeiXinAppJwt <T>(this CissyConfigBuilder cissyConfigBuilder, string AuthenticationScheme) where T : WeiXinAppAuthBaseController
 {
     cissyConfigBuilder.UseWeiXin <T>(AuthenticationScheme, true, WeiXinAppType.WXA);
     return(false);
 }