TickerQ.Dashboard 10.1.2
TickerQ Dashboard Authentication
Simple, clean authentication for your TickerQ Dashboard.
🚀 Quick Examples
No Authentication (Public Dashboard)
services.AddTickerQ<MyTimeTicker, MyCronTicker>(config =>
{
config.AddDashboard(dashboard =>
{
// No authentication setup = public dashboard
});
});
Basic Authentication
services.AddTickerQ<MyTimeTicker, MyCronTicker>(config =>
{
config.AddDashboard(dashboard =>
{
dashboard.WithBasicAuth("admin", "secret123");
});
});
API Key Authentication
services.AddTickerQ<MyTimeTicker, MyCronTicker>(config =>
{
config.AddDashboard(dashboard =>
{
dashboard.WithApiKey("my-secret-api-key-12345");
});
});
Use Host Application's Authentication
services.AddTickerQ<MyTimeTicker, MyCronTicker>(config =>
{
config.AddDashboard(dashboard =>
{
dashboard.WithHostAuthentication();
});
});
Use Host Authentication with Custom Policy
services.AddTickerQ<MyTimeTicker, MyCronTicker>(config =>
{
config.AddDashboard(dashboard =>
{
dashboard.WithHostAuthentication("AdminPolicy");
});
});
Dedicated OpenAPI Group
services.AddTickerQ<MyTimeTicker, MyCronTicker>(config =>
{
config.AddDashboard(dashboard =>
{
dashboard.SetGroupName("tickerq");
});
});
🔧 Fluent API Methods
WithBasicAuth(username, password)- Enable username/password authenticationWithApiKey(apiKey)- Enable API key authenticationWithHostAuthentication(policy)- Use your app's existing auth with optional policy (e.g., "AdminPolicy")SetBasePath(path)- Set dashboard URL pathSetBackendDomain(domain)- Set backend API domainSetCorsPolicy(policy)- Configure CORSSetGroupName(name)- Set OpenAPI group name for dashboard endpoints
🔒 How It Works
The dashboard automatically detects your authentication method:
- No auth configured → Public dashboard
- Basic auth configured → Username/password login
- Bearer token configured → API key authentication
- Host auth configured → Delegates to your app's auth system
🌐 Frontend Integration
The frontend automatically adapts based on your backend configuration:
- Shows appropriate login UI
- Handles SignalR authentication
- Supports both header and query parameter auth (for WebSockets)
That's it! Simple and clean. 🎉
No packages depend on TickerQ.Dashboard.
.NET 10.0
- TickerQ.Utilities (>= 10.1.2)