-
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
Claims are missing in PreAuthorisationMiddleware in v16.0.0 #1258
Comments
I believe this is the same as: #1252 it started in 15.0.7 for me. |
@amweiss, it does seem related, but this is working for me in 15.0.7, so maybe not the same issue. |
Hello, |
@jlukawska, thank you for taking the time to look into this. When I came back to this and attempted to reproduce the error, it was working this time. I'm not sure what was going on before, but I'm all set now. Sorry to waste your time. |
Expected Behavior
In a PreAuthorisationMiddleware, the claims should exist on the ClaimsPrinciple on the HttpContext. This is needed for custom Authorization logic.
Actual Behavior
There are no Claims.
Steps to Reproduce the Problem
Using Ocelot 15.0.7, set up the pipeline with a custom PreAuthorisationMiddleware:
Value of
claimCount
is 13 (at least for my case).Upgrade to Ocelot 16.0.0 and run again. Value of
claimCount
is 0.Specifications
The text was updated successfully, but these errors were encountered: