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:
DashboardWebApplication.cs (4)
311if (options.Frontend.AuthMode == FrontendAuthMode.BrowserToken) 412if (dashboardOptions.Frontend.AuthMode == FrontendAuthMode.BrowserToken) 766case FrontendAuthMode.BrowserToken: 810case 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)
34config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 56config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 87config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 111config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 127[InlineData(FrontendAuthMode.BrowserToken, "TestKey123!", HttpStatusCode.OK, true)] 128[InlineData(FrontendAuthMode.BrowserToken, "Wrong!", HttpStatusCode.OK, false)] 163config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 224config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 251config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString();
Integration\Playwright\BrowserTokenAuthenticationTests.cs (1)
20Configuration[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = nameof(FrontendAuthMode.BrowserToken);
Integration\StartupTests.cs (1)
437Assert.Equal(FrontendAuthMode.BrowserToken, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode);
Middleware\ValidateTokenMiddlewareTests.cs (4)
36using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token"); 44using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token"); 52using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token"); 60using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token");