Azure / apim-lab

API Management - Hands-on Lab Workshop
https://azure.github.io/apim-lab/
MIT License
74 stars 81 forks source link

Add more detail on why (context.User.Id) is not getting evaluated from Azure management portal under Transformation policies #29

Closed anu-01 closed 2 years ago

anu-01 commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

asofio commented 3 years ago

Along with a clearer explanation, would it be helpful to change the code to what is shown below so that this does not cause a failure?

<value>@(context.User == null ? "Unknown" : context.User.Id)</value>

simonkurtz-MSFT commented 2 years ago

This was removed from the lab as it was problematic and seemingly did not illustrate the value of transformation policies any more than what we already have in place.