Skip to content

Authorization in API and Hangfire dashboard issue #8222

Answered by Woselko
Woselko asked this question in Q&A
Discussion options

You must be logged in to vote

@ysmoradi thank you!
removing those if statements is what I was looking for:

this is when Im logged in:

and there is no access token cookie when Im logged out.

What is more I used:
app.MapHangfireDashboardWithAuthorizationPolicy("");

Which means that user need to be logged in only. Without any role, just authenticated.
Thanks!

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Woselko
Comment options

@ysmoradi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ysmoradi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants