What should you do ...
 
Notifications
Clear all

What should you do first?

1 Posts
1 Users
0 Likes
134 Views
(@pochethurman)
Noble Member
Joined: 2 years ago
Posts: 704
Topic starter  

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.

Show Answer Hide Answer

Suggested 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

   
Quote

Latest Microsoft AZ-204 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: