Microsoft.IdentityModel.Tokens version 6.15.0 no user context in AuthorizationHandlerContext
A lesson learned i would like to share.
I had a working JWT using RSA key pairs on a .NET 6 based API, installing
Microsoft.IdentityModel.Tokens version 6.15.0 (latest) broke it, my
custom policy handler were not getting the user context!
I tried everything i know to fix it from my side but only restoring back to version 6.14.1 fixed it for me.
I checked the package Github and it seems there are a couple issues mentioning dependencies version!