You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While upgrading our multi tenant application from NET6 to NET8, we run into some strange issue where our per tenant authentication options was loaded before the tenant middleware was called.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
While upgrading our multi tenant application from NET6 to NET8, we run into some strange issue where our per tenant authentication options was loaded before the tenant middleware was called.
Seems NET8 force authentication / authorization middlewares to be executes before custom middlewares.
https://github.com/dotnet/aspnetcore/blob/v8.0.6/src/DefaultBuilder/src/WebApplicationBuilder.cs#L436
We had to create a workaround to keep our application working.
Is there a correct way to fix this?
Beta Was this translation helpful? Give feedback.
All reactions