What should you do first?
You need to access data from the user claim object in the e-commerce web app.
What should you do first?
A . Write custom code to make a Microsoft Graph API call from the e-commerce web app.
B . Assign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment AP
D . Update the e-commerce web app to read the HTTP request header values.
E . Using the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.
Answer: C
Explanation:
Methods to Get User Identity and Claims in a .NET Azure Functions App include:
ClaimsPrincipal from the Request Context
The ClaimsPrincipal object is also available as part of the request context and can be extracted from the HttpRequest.HttpContext. User Claims from the Request Headers.
App Service passes user claims to the app by using special request headers.
Reference: https://levelup.gitconnected.com/four-alternative-methods-to-get-user-identity-and-claims-in-a-net-azurefunctions-app-df98c40424bb
Latest AZ-204 Dumps Valid Version with 254 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund