I'm logging various context properties from APIM. One category of properties that can be logged from the context variable is "Jwt" with properties like Algorithm, Audience, Claims. However, when I try to log these properties from a policy, APIM returns the following error:
'IProxyRequestContext' does not contain a definition for 'Jwt'
I'm assuming that this is because Jwt is not configured for my particular test instance. Is there a way to make my logging conditional for this? Something like?:
if Jwt exists on context then log Jwt.Algorithm
Although Jwt is not configured for my local environment I think it may be configured for the production environment and my company would be interested in capturing this information.