Suggested Answer:D🗳️
If you want more information about the user, you'll need to use the Azure AD Graph API. References: https://docs.microsoft.com/en-us/azure/architecture/multitenant-identity/claims
For all language frameworks, App Service makes the claims in the incoming token (whether from an authenticated end user or a client application) available to your code by injecting them into the request headers. External requests aren't allowed to set these headers, so they are present only if set by App Service. Some example headers include:
X-MS-CLIENT-PRINCIPAL-NAME
X-MS-CLIENT-PRINCIPAL-ID
https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-user-identities
Claims are name-value pairs that relay facts about the token subject. It contains many facts aboutt eh security principal among other info. user claims is available through a few means. If you want MORE INFO about the user, you'll need to use the AAD Graph API.
Now the question doesn't say how much of the user claims info is to be accessed. So it's hard to say if B is sufficient or if we need to write custom code through Graph API.
Inconclusive to me. I'll go with Graph API... rest is up to Bruce Almighty!
B only sends part of headers if you want all, you will need an extra call to /.auth/me that is a call to Graph, keep in mind you can create custom claims
This is true for the client-side code (in JS for example). The documentation linked below says, that ID and access tokens are injected through headers X-MS-TOKEN-AAD-ID-TOKEN and X-MS-TOKEN-AAD-ACCESS-TOKEN.
https://docs.microsoft.com/en-us/azure/app-service/app-service-authentication-how-to#access-user-claims
I feel like this should be B not D, if your user is signed in properly the claims should be in the header of all requests which should allow you to retrieve the claims using claims principal, i shouldnt need to write extra code to hit an api for all that information
upvoted 5 times
...
This section is not available anymore. Please use the main Exam Page.AZ-203 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Phantom88
Highly Voted 5 years, 1 month agoPhantom88
Highly Voted 5 years, 1 month agomeoukg
Most Recent 3 years, 3 months agoaltafpatel1984
3 years, 6 months agoCornholioz
4 years, 5 months agoeric_draven
4 years, 10 months agobugimachi
4 years, 5 months agoAK89
5 years agoIq
5 years, 1 month ago