public WeiXinAuthBaseController(ICissyConfig cissyConfig)
 {
     CissyConfig = cissyConfig;
     appConfig   = CissyConfig.GetConfig <AppConfig>();
     Option      = Actor.Public.GetService <IAuthenticationOptionBuilder>().Build();
     WeiXinMpApi = Actor.Public.GetService <IWeiXinMpApi>();
 }
Esempio n. 2
0
        public CissyAuthMiddlerware(RequestDelegate next)
        {
            _next = next;

            this.CissyConfig = Actor.Public.GetService <ICissyConfig>();
            this.AppConfig   = this.CissyConfig.GetConfig <AppConfig>();
            var builder = Actor.Public.GetService <IAuthenticationOptionBuilder>();

            Option = builder.Build();
        }
Esempio n. 3
0
 public DefaultAuthenticationOptionBuilder(Action <CissyAuthenticationOption> action)
 {
     option = new CissyAuthenticationOption()
     {
         Scheme = AuthenticationScheme.Default, AuthenticationType = AuthenticationTypes.Cookie, AuthenticationApply = AuthenticationApplies.Web
     };
     if (action.IsNotNull())
     {
         action(option);
     }
 }
Esempio n. 4
0
 public CissyPermitAttribute()
 {
     Option = Actor.Public.GetService <IAuthenticationOptionBuilder>().Build();
     Config = Actor.Public.GetService <ICissyConfig>().GetConfig <AppConfig>();
 }