Valid AZ-204 Dumps shared by ExamDiscuss.com for Helping Passing AZ-204 Exam! ExamDiscuss.com now offer the newest AZ-204 exam dumps, the ExamDiscuss.com AZ-204 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AZ-204 dumps with Test Engine here:
You are implementing an Azure API app that uses built-in authentication and authorization functionality. All app actions must be associated with information about the current user. You need to retrieve the information about the current user. What are two possible ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Correct Answer: A,C
Explanation A: After App Service Authentication has been configured, users trying to access your API are prompted to sign in with their organizational account that belongs to the same Azure AD as the Azure AD application used to secure the API. After signing in, you are able to access the information about the current user through the HttpContext.Current.User property. C: While the server code has access to request headers, client code can access GET /.auth/me to get the same access tokens ( References: https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-auth-aad https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/connect-to-api-secured-with-aad