static Systems() { _exCookieManager = (ICookieManager)Providers.GetProvider(ProviderType.ICookieManager); _exLogSystem = (ILogSystem)Providers.GetProvider(ProviderType.ILogSystem); _exCredentialCache = (ICredentialCache)Providers.GetProvider(ProviderType.ICredentialCache); _exUAC = (IUAC)Providers.GetProvider(ProviderType.IUAC); }
public ApplicationCookieManager() { _defaultCookieManager = new ChunkingCookieManager(); }
public UserExchangeController(IContextUnwrapper contextUnwrapper, ICookieManager cookieManager, IUserExchangeService userExchangeService) : base(contextUnwrapper, cookieManager) { this.userExchangeService = userExchangeService; }
public ToolAdminController(IAuthenticationService authenticationService, ICookie cookie, ICookieManager cookieManager) { _authenticationService = authenticationService; _cookie = cookie; _cookieManager = cookieManager; }
public SameSiteCookieManager(ICookieManager innerManager) { _innerManager = innerManager; }
public GalaxyController(IGameService gameService, IAuthenticationService authenticationService, IObjectService objectService, ICookie cookie, ICookieManager cookieManager) { _gameService = gameService; _authenticationService = authenticationService; _cookie = cookie; _cookieManager = cookieManager; _objectService = objectService; }
public static async Task Apply( this CommandResult commandResult, HttpContext httpContext, IDataProtector dataProtector, ICookieManager cookieManager, string signInScheme, string signOutScheme, bool emitSameSiteNone) { httpContext.Response.StatusCode = (int)commandResult.HttpStatusCode; if (commandResult.Location != null) { httpContext.Response.Headers["Location"] = commandResult.Location.OriginalString; } if (!string.IsNullOrEmpty(commandResult.SetCookieName)) { var cookieData = HttpRequestData.ConvertBinaryData( dataProtector.Protect(commandResult.GetSerializedRequestState())); cookieManager.AppendResponseCookie( httpContext, commandResult.SetCookieName, cookieData, new CookieOptions() { HttpOnly = true, Secure = commandResult.SetCookieSecureFlag, // We are expecting a different site to POST back to us, // so the ASP.Net Core default of Lax is not appropriate in this case SameSite = emitSameSiteNone ? SameSiteMode.None : (SameSiteMode)(-1), IsEssential = true }); } foreach (var h in commandResult.Headers) { httpContext.Response.Headers.Add(h.Key, h.Value); } if (!string.IsNullOrEmpty(commandResult.ClearCookieName)) { cookieManager.DeleteCookie( httpContext, commandResult.ClearCookieName, new CookieOptions { Secure = commandResult.SetCookieSecureFlag }); } if (!string.IsNullOrEmpty(commandResult.Content)) { var buffer = Encoding.UTF8.GetBytes(commandResult.Content); httpContext.Response.ContentType = commandResult.ContentType; await httpContext.Response.Body.WriteAsync(buffer, 0, buffer.Length); } if (commandResult.Principal != null) { var authProps = new AuthenticationProperties(commandResult.RelayData) { RedirectUri = commandResult.Location.OriginalString }; await httpContext.SignInAsync(signInScheme, commandResult.Principal, authProps); } if (commandResult.TerminateLocalSession) { await httpContext.SignOutAsync(signOutScheme ?? signInScheme); } }
public DependenciesController(ICustomTelemetryService customTelemetryService, ITelemetryRetrievalService telemetryRetrievalService, IAuthenticationService authenticationService, ICookie cookie, ICookieManager cookieManager) { this.customTelemetryService = customTelemetryService; this.telemetryRetrievalService = telemetryRetrievalService; this.authenticationService = authenticationService; this.cookie = cookie; this.cookieManager = cookieManager; }
public HomeController(IAuthenticationService authenticationService, IDiscordService discordService, ICookie cookie, ICookieManager cookieManager, IConfiguration configuration) { this.authService = authenticationService; this.discordService = discordService; _cookie = cookie; _cookieManager = cookieManager; _configuration = configuration; }
public HomeController(IApiRepo apiRepo, ICookieManager cookieManager) { _cookieManager = cookieManager; _apiRepo = apiRepo; }
public static string?GetPreviewCookieValue(this ICookieManager cookieManager) => cookieManager.GetCookieValue(Constants.Web.PreviewCookieName);
public Facebook(FederatedAuthenticationConfiguration federatedAuthenticationConfiguration, ICookieManager cookieManager, BaseSettings settings) : base(federatedAuthenticationConfiguration, cookieManager, settings) { }
public HomeController(IShortnerService shortnerService, ILinkShortnerService linkShortner, ICookieManager cookieManager) { ShortnerService = shortnerService; LinkShortner = linkShortner; CookieController = cookieManager; }
public dev_accaunt_mng(ICookieManager cmng, IDataBase db) { this.cmng = cmng; this.db = db; }
/// <summary> /// Создает экземпляр класса <see cref="MyApplicationSettingManager"/> /// </summary> /// <param name="cookieManager"></param> /// <param name="ambientContext"></param> public MyApplicationSettingManager(ICookieManager cookieManager, ICrocoAmbientContext ambientContext) { _cookieManager = cookieManager; _ambientContext = ambientContext; }