Don't think B or D fit here. A and C match the usual Easy Auth flow: headers for backend, /.auth/me for client-side details. D's just for kicking off login so wouldn't actually return user info.
Q: 8
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.
Options
Discussion
Tough one since headers can be tricky on the client, but I'd still pick A and C. Anyone disagree with both those?
Not B, it's definitely A and C. Headers and the /.auth/me endpoint are how Easy Auth exposes user data, seen this in exam practice before. D is just login trigger, won't give user info. Anyone see it differently?
C/A? Both give user info, but headers are more backend use and /.auth/me is handy for client apps.
Looks like the correct picks are A and C here. HTTP headers and the /.auth/me endpoint both let you grab user info with Azure's built-in auth. If anyone thinks D is better, I'm open to being convinced but I doubt it!
A and C tbh, seen this in practice tests and the official docs too.
B tbh
Its A and C, D just starts login so doesn't give user info. B's a common trap.
A and C tbh
Its A and C for sure. HTTP headers (A) are how server code gets user identity from Easy Auth, while /.auth/me (C) returns claims on the client side. That matches what's in the official docs and practice tests I’ve seen. Anyone think B or D could work?
Be respectful. No spam.
Question 8 of 35