26 references to BrowserToken
Aspire.Dashboard (11)
Authentication\FrontendCompositeAuthenticationHandler.cs (1)
49FrontendAuthMode.BrowserToken => FrontendAuthenticationDefaults.AuthenticationSchemeBrowserToken,
Configuration\PostConfigureDashboardOptions.cs (2)
54options.Frontend.AuthMode ??= FrontendAuthMode.BrowserToken; 57if (options.Frontend.AuthMode == FrontendAuthMode.BrowserToken && string.IsNullOrEmpty(options.Frontend.BrowserToken))
Configuration\ValidateDashboardOptions.cs (1)
44case FrontendAuthMode.BrowserToken:
DashboardEndpointsBuilder.cs (1)
19if (dashboardOptions.Frontend.AuthMode == FrontendAuthMode.BrowserToken)
DashboardWebApplication.cs (3)
332if (options.Frontend.AuthMode == FrontendAuthMode.BrowserToken) 739case FrontendAuthMode.BrowserToken: 783case FrontendAuthMode.BrowserToken:
Model\ValidateTokenMiddleware.cs (3)
31if (_options.CurrentValue.Frontend.AuthMode != FrontendAuthMode.BrowserToken) 33_logger.LogDebug($"Request to validate token URL but auth mode isn't set to {FrontendAuthMode.BrowserToken}."); 37else if (context.Request.Query.TryGetValue("t", out var value) && _options.CurrentValue.Frontend.AuthMode == FrontendAuthMode.BrowserToken)
Aspire.Dashboard.Tests (15)
Integration\FrontendBrowserTokenAuthTests.cs (9)
35config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 57config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 88config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 112config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 128[InlineData(FrontendAuthMode.BrowserToken, "TestKey123!", HttpStatusCode.OK, true)] 129[InlineData(FrontendAuthMode.BrowserToken, "Wrong!", HttpStatusCode.OK, false)] 164config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 225config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 252config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString();
Integration\Playwright\BrowserTokenAuthenticationTests.cs (1)
21Configuration[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = nameof(FrontendAuthMode.BrowserToken);
Integration\StartupTests.cs (1)
437Assert.Equal(FrontendAuthMode.BrowserToken, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode);
Middleware\ValidateTokenMiddlewareTests.cs (4)
37using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 45using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 53using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 61using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout();