public AbpAntiForgeryCookieNameProvider(
     IOptionsMonitor <CookieAuthenticationOptions> namedOptionsAccessor,
     IOptions <AbpAntiForgeryOptions> abpAntiForgeryOptions)
 {
     _namedOptionsAccessor  = namedOptionsAccessor;
     _abpAntiForgeryOptions = abpAntiForgeryOptions.Value;
 }
 public AspNetCoreAbpAntiForgeryManager(
     IAntiforgery antiforgery,
     IHttpContextAccessor httpContextAccessor,
     IOptions <AbpAntiForgeryOptions> options)
 {
     _antiforgery         = antiforgery;
     _httpContextAccessor = httpContextAccessor;
     Options = options.Value;
 }
Ejemplo n.º 3
0
 public AbpAutoValidateAntiforgeryTokenAuthorizationFilter(
     IAntiforgery antiforgery,
     AbpAntiForgeryCookieNameProvider antiForgeryCookieNameProvider,
     IOptions <AbpAntiForgeryOptions> options,
     ILogger <AbpValidateAntiforgeryTokenAuthorizationFilter> logger)
     : base(
         antiforgery,
         antiForgeryCookieNameProvider,
         logger)
 {
     _options = options.Value;
 }