From 8d9198b54f403be33b7ebdad8aef7989530d0007 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Tue, 3 Sep 2024 09:36:47 +0300 Subject: [PATCH] Update hangfire.md --- .../framework/infrastructure/background-jobs/hangfire.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/framework/infrastructure/background-jobs/hangfire.md b/docs/en/framework/infrastructure/background-jobs/hangfire.md index af112f8fec..396c7498b5 100644 --- a/docs/en/framework/infrastructure/background-jobs/hangfire.md +++ b/docs/en/framework/infrastructure/background-jobs/hangfire.md @@ -155,11 +155,11 @@ app.UseAbpHangfireDashboard("/hangfire", options => **Important**: `UseAbpHangfireDashboard` should be called after the authentication and authorization middlewares in your `Startup` class (probably at the last line). Otherwise, authorization will always fail! -#### Dashboard Authorization In API Website. +#### Dashboard Authorization In API Projects -If you use the hangfire dashboard in a api project that uses non-cookie authentication (like JWT Bearers), The `/hangfire` page can't authenticate the user. +If you use the hangfire dashboard in an API project that uses non-cookie authentication (like JWT Bearers), The `/hangfire` page can't authenticate the user. -In this case, you can add a cookies authorization scheme to authenticate the user. The best way to do this is to use the `Cookie` and `OpenIdConnect` authentication schemes. This requires creating a new OAuth2 client and add the `ClientId`, `ClientSecret` properties to the `AuthServer` section in the `appsettings.json` file. +In this case, you can add a cookies authorization scheme to authenticate the user. The best way to do this is to use the `Cookie` and `OpenIdConnect` authentication schemes. This requires creating a new OAuth2 client and adding the `ClientId`, and `ClientSecret` properties to the `AuthServer` section in the `appsettings.json` file. The final code should look like below: @@ -222,4 +222,4 @@ app.UseAbpHangfireDashboard("/hangfire", options => { options.AsyncAuthorization = new[] {new AbpHangfireAuthorizationFilter()}; }); -``` \ No newline at end of file +```