-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How can I implement policy based authorization with Ocelot? #1396
Comments
i have same problem. i tried to access to Claims with context.User.Claims but it return null. |
I have the same problem. This has to be a bug. I cannot upgrade until I figure out why this is happening. |
i checked the source code and found the problem. |
This is bad!!! No Ocelot/src/Ocelot/Multiplexer/MultiplexingMiddleware.cs Lines 163 to 188 in 3ef6abd
|
Hi! Regarding your question:
Policy-based authentication can be implemented all time for each regular ASP.NET app mostly for all Ocelot versions. See Microsoft docs: In version 23.0 we've delivered new Multiple Authentication Schemes feature which allows not grouping schemes but try to authenticate multiple times. |
* Fix HttpContext.User is lost after passing MultiplexingMiddlware * Simplify single downstream route handling * fix * some refactoring of long code * add unit tests for #1396 user scenario * Acceptance test for user forwarding * refactor test --------- Co-authored-by: Алексей Патрин <[email protected]> Co-authored-by: Raman Maksimchuk <[email protected]>
Feature
Actual Behavior
Further, I tried to access claims with
HttpContext.User.Identities
, but it givingnull
.The text was updated successfully, but these errors were encountered: