IdentityModel.AspNetCore.OAuth2Introspection
IdentityModel.AspNetCore.OAuth2Introspection copied to clipboard
Revert #173 + add unit tests
Revert PR #173, which introduced bug #177. I also added 2 unit tests: one to verify the introspection result sharing with concurrent calls. The second reproduces bug #177.
Note the cancellation test will behave differently with IdentityModel v6.1.0
because of this PR. It will still fail on the second request, but because of TaskCancelledException
instead of invalid StatusCode
.
@leastprivilege, @bmendonca21 please review. @renagaev you may be also interested to review as you contributed the #173.