I’m trying to secure the dashboard via claims authentication.
I have a separate auth server that issue claims.
app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions()
{
});
app.UseHangfire(config =>
{
config.UseAuthorizationFilters(new ClaimsBasedAuthorizationFilter("Usercode", "SomeValue"));
});
My token is stored in the browser localstorage, my problem is i dont know how to pass this to hangfire every request so the user is validated.
Anyone can point me in the right direction?