AZ-204 · Question #239
Case Study 2 - Coho Winery LabelMaker app Coho Winery produces bottles, and distributes a variety of wines globally. You are developer implementing highly scalable and resilient applications to…
The correct answer is C. Update the e-commerce web app to read the HTTP request header values. 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…
Question
Exhibits
Options
- AWrite custom code to make a Microsoft Graph API call from the e-commerce web app.
- BAssign the Contributor RBAC role to the e-commerce web app by using the Resource Manager
- CUpdate the e-commerce web app to read the HTTP request header values.
- DUsing the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce
How the community answered
(28 responses)- A4% (1)
- B7% (2)
- C75% (21)
- D14% (4)
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. https://levelup.gitconnected.com/four-alternative-methods-to-get-user-identity-and-claims-in-a- net-azure-functions-app-df98c40424bb
Topics
Community Discussion
No community discussion yet for this question.

