Skip to content

fix: add authorization to dashboard auth #408#620

Draft
toni-schmitt wants to merge 2 commits into
Arcenox-co:mainfrom
toni-schmitt:fix/dashboard-auth-#408
Draft

fix: add authorization to dashboard auth #408#620
toni-schmitt wants to merge 2 commits into
Arcenox-co:mainfrom
toni-schmitt:fix/dashboard-auth-#408

Conversation

@toni-schmitt
Copy link
Copy Markdown

Fixes #408 by adding missing UseAuthorization between UseRouting and UseEndpoints calls

dashboardApp.UseAuthorization();

// Add authentication middleware (only protects API endpoints)
if (config.Auth.IsEnabled)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was also contemplating putting it into the if statement here, but I assumes that that would still break some implementations? But I could be wrong. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard endpoint routing raises InvalidOperationException because of missing UseAuthorization in the Dashboard Routing Setup

1 participant