{"id":24574918,"url":"https://github.com/kode-rex/hangfirebasicauthenticationfilter","last_synced_at":"2025-04-23T15:21:54.794Z","repository":{"id":44939244,"uuid":"165084834","full_name":"Kode-Rex/HangfireBasicAuthenticationFilter","owner":"Kode-Rex","description":"A basic auth filter for hangfire dashboard","archived":false,"fork":false,"pushed_at":"2023-06-05T22:01:22.000Z","size":29,"stargazers_count":28,"open_issues_count":8,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T04:03:23.275Z","etag":null,"topics":["hangfire"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kode-Rex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-10T15:34:25.000Z","updated_at":"2024-11-14T08:15:21.000Z","dependencies_parsed_at":"2022-09-24T22:12:56.067Z","dependency_job_id":null,"html_url":"https://github.com/Kode-Rex/HangfireBasicAuthenticationFilter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kode-Rex%2FHangfireBasicAuthenticationFilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kode-Rex%2FHangfireBasicAuthenticationFilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kode-Rex%2FHangfireBasicAuthenticationFilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kode-Rex%2FHangfireBasicAuthenticationFilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kode-Rex","download_url":"https://codeload.github.com/Kode-Rex/HangfireBasicAuthenticationFilter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250457813,"owners_count":21433740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hangfire"],"created_at":"2025-01-23T21:53:58.732Z","updated_at":"2025-04-23T15:21:54.775Z","avatar_url":"https://github.com/Kode-Rex.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# NuGet\n\nThe dotnet core nuget package can be found at https://www.nuget.org/packages/Hangfire.Dashboard.Basic.Authentication\n\n## About ## \n\nHangfire.Dashboard.Basic.Authentication is a re-usable Hangfire Basic Authentication filter that can be easily imported and configured in your project. It provides a quick and easy way to add basic authentication to your Hangfire dashboard, without the need for complex configuration.\n\n## Configurion ##\n\nIn your startup file, configure the Hangfire dashboard options and add the BasicAuthAuthorizationFilter:\n\n```C#\nusing Hangfire.Dashboard.Basic.Authentication;\n\n// ...\n\npublic void Configure(IApplicationBuilder app, IWebHostEnvironment env)\n{\n    // ...\n\n    var options = new DashboardOptions\n    {\n        Authorization = new[]\n        {\n            new BasicAuthAuthorizationFilter(new BasicAuthAuthorizationFilterOptions\n            {\n                SslRedirect = false,\n                RequireSsl = false,\n                LoginCaseSensitive = true,\n                Users = new []\n                {\n                    new BasicAuthAuthorizationUser\n                    {\n                        Login = \"myuser\",\n                        PasswordClear = \"mypassword\"\n                    }\n                }\n            })\n        }\n    };\n\n    app.UseHangfireDashboard(\"/hangfire\", options);\n    app.UseHangfireServer();\n\n    // ...\n}\n```\n\n## Usage ##\nJust replace my_username and my_password with your desired values. And tune the SSL setting for your needs. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkode-rex%2Fhangfirebasicauthenticationfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkode-rex%2Fhangfirebasicauthenticationfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkode-rex%2Fhangfirebasicauthenticationfilter/lists"}