https://github.com/yuzd/Hangfire.Dashboard.BasicAuthorization
Hangfire.Dashboard.BasicAuthorization for .netcore
https://github.com/yuzd/Hangfire.Dashboard.BasicAuthorization
basicauthentication hangfire
Last synced: 5 months ago
JSON representation
Hangfire.Dashboard.BasicAuthorization for .netcore
- Host: GitHub
- URL: https://github.com/yuzd/Hangfire.Dashboard.BasicAuthorization
- Owner: yuzd
- License: mit
- Created: 2018-05-27T12:50:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-12T02:46:13.000Z (almost 6 years ago)
- Last Synced: 2025-04-20T09:55:37.027Z (6 months ago)
- Topics: basicauthentication, hangfire
- Language: C#
- Size: 4.88 KB
- Stars: 47
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Hangfire.Dashboard.BasicAuthorization for .netcore
================================Some authorization filters for Hangfire's Dashboard.
Installation
-------------This library is available as a NuGet Package:
```
Install-Package Hangfire.Dashboard.BasicAuthorization
```Usage
------## Basic authentication
```csharp
using Hangfire.Dashboard;public void Configure(IApplicationBuilder app)
{
app.UseHangfireServer();
app.UseHangfireDashboard("/hangfire",new DashboardOptions
{
Authorization = new[] { new BasicAuthAuthorizationFilter(new BasicAuthAuthorizationFilterOptions
{
RequireSsl = false,
SslRedirect = false,
LoginCaseSensitive = true,
Users = new []
{
new BasicAuthAuthorizationUser
{
Login = "admin",
PasswordClear = "test"
}
}}) }
});
}
```