public WeiXinAuthBaseController(ICissyConfig cissyConfig) { CissyConfig = cissyConfig; appConfig = CissyConfig.GetConfig <AppConfig>(); Option = Actor.Public.GetService <IAuthenticationOptionBuilder>().Build(); WeiXinMpApi = Actor.Public.GetService <IWeiXinMpApi>(); }
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(); }
public DefaultAuthenticationOptionBuilder(Action <CissyAuthenticationOption> action) { option = new CissyAuthenticationOption() { Scheme = AuthenticationScheme.Default, AuthenticationType = AuthenticationTypes.Cookie, AuthenticationApply = AuthenticationApplies.Web }; if (action.IsNotNull()) { action(option); } }
public CissyPermitAttribute() { Option = Actor.Public.GetService <IAuthenticationOptionBuilder>().Build(); Config = Actor.Public.GetService <ICissyConfig>().GetConfig <AppConfig>(); }