Enabling using EnableValidationResultCache = true and also using UseClaimsTransformation, then UseClaimsTransformation is called always anyway. And the identity passed into it is not the previously returned identity, so there's no way to exit it. Hence if you lookup UserInfo in UseClaimsTransformation the identity server will be called... always and you are forced to implement your own caching.
Enabling using
EnableValidationResultCache = true
and also usingUseClaimsTransformation
, thenUseClaimsTransformation
is called always anyway. And the identity passed into it is not the previously returned identity, so there's no way to exit it. Hence if you lookupUserInfo
inUseClaimsTransformation
the identity server will be called... always and you are forced to implement your own caching.