-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Flow endpoint and httpcontext always from authz middleware #22672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Security/Authorization/Policy/src/AuthorizationMiddlewareContext.cs
Outdated
Show resolved
Hide resolved
src/Security/Authorization/Policy/src/AuthorizationMiddleware.cs
Outdated
Show resolved
Hide resolved
src/Security/Authorization/Policy/src/AuthorizationMiddlewareContext.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make an announcement for this?
Yep I'll open an announcement |
Breaking change issue dotnet/docs#19034 |
This is a runtime breaking change so it’s a big deal. People will migrate to 5.0 and nothing will tell them this is broken after migration until you happen to read the docs. I suggest we do more and write an analyzer to detect consumption of this object at runtime. cc @pranavkm |
We could also just do this in a non breaking way and add an |
One of the options we briefly discussed during 3.0 was wrapping the context in an object that allows casting to |
Is the worry that there will be code outside of the app in a library that wouldn't be able to react to this mode? Would that be like some other kind of identity UI packages like thing which might have baked in code expecting the endpoint? |
Fixes: #16695