26 references to BrowserToken
Aspire.Dashboard (11)
Authentication\FrontendCompositeAuthenticationHandler.cs (1)
49
FrontendAuthMode.
BrowserToken
=> FrontendAuthenticationDefaults.AuthenticationSchemeBrowserToken,
Configuration\PostConfigureDashboardOptions.cs (2)
54
options.Frontend.AuthMode ??= FrontendAuthMode.
BrowserToken
;
57
if (options.Frontend.AuthMode == FrontendAuthMode.
BrowserToken
&& string.IsNullOrEmpty(options.Frontend.BrowserToken))
Configuration\ValidateDashboardOptions.cs (1)
44
case FrontendAuthMode.
BrowserToken
:
DashboardWebApplication.cs (4)
311
if (options.Frontend.AuthMode == FrontendAuthMode.
BrowserToken
)
412
if (dashboardOptions.Frontend.AuthMode == FrontendAuthMode.
BrowserToken
)
766
case FrontendAuthMode.
BrowserToken
:
810
case FrontendAuthMode.
BrowserToken
:
Model\ValidateTokenMiddleware.cs (3)
31
if (_options.CurrentValue.Frontend.AuthMode != FrontendAuthMode.
BrowserToken
)
33
_logger.LogDebug($"Request to validate token URL but auth mode isn't set to {FrontendAuthMode.
BrowserToken
}.");
37
else if (context.Request.Query.TryGetValue("t", out var value) && _options.CurrentValue.Frontend.AuthMode == FrontendAuthMode.
BrowserToken
)
Aspire.Dashboard.Tests (15)
Integration\FrontendBrowserTokenAuthTests.cs (9)
34
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
56
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
87
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
111
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
127
[InlineData(FrontendAuthMode.
BrowserToken
, "TestKey123!", HttpStatusCode.OK, true)]
128
[InlineData(FrontendAuthMode.
BrowserToken
, "Wrong!", HttpStatusCode.OK, false)]
163
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
224
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
251
config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.
BrowserToken
.ToString();
Integration\Playwright\BrowserTokenAuthenticationTests.cs (1)
20
Configuration[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = nameof(FrontendAuthMode.
BrowserToken
);
Integration\StartupTests.cs (1)
437
Assert.Equal(FrontendAuthMode.
BrowserToken
, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode);
Middleware\ValidateTokenMiddlewareTests.cs (4)
36
using var host = await SetUpHostAsync(FrontendAuthMode.
BrowserToken
, "token");
44
using var host = await SetUpHostAsync(FrontendAuthMode.
BrowserToken
, "token");
52
using var host = await SetUpHostAsync(FrontendAuthMode.
BrowserToken
, "token");
60
using var host = await SetUpHostAsync(FrontendAuthMode.
BrowserToken
, "token");