Skip to content

Commit

Permalink
Merge branch 'pc-727-vac-items-toevoegen' of https://github.com/Klant…
Browse files Browse the repository at this point in the history
…interactie-Servicesysteem/KISS-frontend into pc-727-vac-items-toevoegen
  • Loading branch information
nijmra committed Jan 15, 2025
2 parents c50fa06 + 8c82a01 commit 9df7634
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Kiss.Bff/Config/AuthenticationSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ public static IServiceCollection AddKissAuth(this IServiceCollection services, A
options.ExpireTimeSpan = TimeSpan.FromMinutes(60);
options.SlidingExpiration = true;
//options.Events.OnSigningOut = (e) => e.HttpContext.RevokeRefreshTokenAsync();
options.Events.OnRedirectToAccessDenied = HandleLoggedOut;
options.Events.OnRedirectToAccessDenied = (ctx) =>
{
ctx.Response.StatusCode = StatusCodes.Status403Forbidden;
return Task.CompletedTask;
};
options.Events.OnRedirectToLogin = HandleLoggedOut;
});

Expand Down

0 comments on commit 9df7634

Please sign in to comment.