CommunityAbp.Hangfire.PasswordAuthorization
1.0.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CommunityAbp.Hangfire.PasswordAuthorization --version 1.0.5
NuGet\Install-Package CommunityAbp.Hangfire.PasswordAuthorization -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityAbp.Hangfire.PasswordAuthorization" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityAbp.Hangfire.PasswordAuthorization --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommunityAbp.Hangfire.PasswordAuthorization, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CommunityAbp.Hangfire.PasswordAuthorization as a Cake Addin #addin nuget:?package=CommunityAbp.Hangfire.PasswordAuthorization&version=1.0.5 // Install CommunityAbp.Hangfire.PasswordAuthorization as a Cake Tool #tool nuget:?package=CommunityAbp.Hangfire.PasswordAuthorization&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CommunityAbp.Hangfire.PasswordAuthorization
ABP module which adds a login page and password authentication to the hangfire dashboard.
Installation
Package
To install this abp.io module, simply add the nuget package to your project:
Install-Package CommunityAbp.Hangfire.PasswordAuthorization
Module
Then, add the module to your project's module dependencies:
[DependsOn(typeof(CommunityAbpHangfirePasswordAuthorizationModule))]
public class MyProjectModule : AbpModule
{
}
Setup
Finally, configure the password in your project's appsettings.json
:
private void ConfigureHangfire(IServiceCollection services, IConfiguration configuration)
{
services.AddAbpHangfireDashboardWithLogin(
authOptions =>
{
authOptions.Username = "admin";
authOptions.Password = "password123";
},
dashboardOptions =>
{
dashboardOptions.DashboardTitle = "My Secure Hangfire Dashboard";
// Other dashboard configurations...
}
);
services.AddHangfire(config =>
{
config.UseSqlServerStorage(configuration.GetConnectionString("Default"));
});
services.AddHangfireServer();
}
Example
When trying to access the dashboard unauthenticated, the following prompt is shown:
Here, the account used in the sample is admin
/password123
. Entering that, let's me access the dashboard:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Hangfire.AspNetCore (>= 1.8.17)
- Volo.Abp.BackgroundJobs.HangFire (>= 9.0.1)
- Volo.Abp.HangFire (>= 9.0.1)
-
net9.0
- Hangfire.AspNetCore (>= 1.8.17)
- Volo.Abp.AspNetCore (>= 9.0.1)
- Volo.Abp.BackgroundJobs.HangFire (>= 9.0.1)
- Volo.Abp.HangFire (>= 9.0.1)
- Volo.Abp.Identity.Domain (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.