Microsoft Azure Developer Associate AZ-204 Practice Question
You are building a .NET 6 Web API that will be called by a single-page application (SPA) registered in Microsoft Entra ID. The SPA obtains tokens from the v2.0 endpoint by requesting the scope api:///Weather.Read. During testing, the Web API rejects every call with the error "The issuer 'https://login.microsoftonline.com//v2.0' is not valid." You need to configure the Web API's app registration so that it accepts the incoming v2.0 access tokens without changing any code in the SPA.
Which manifest property should you modify, and what value should it have?
Set oauth2AllowImplicitFlow to true.
Add the SPA's client ID to the knownClientApplications array.
Remove accessTokenAcceptedVersion (leave it null).
The v2.0 endpoint issues access tokens that include a version 2 issuer (…/v2.0). A Web API app registration that was created before the v2 endpoint was introduced is configured to accept only v1 tokens. To allow the API to validate v2 tokens you must set the manifest property accessTokenAcceptedVersion to 2. No other manifest setting affects issuer validation for v2 tokens, and properties such as oauth2AllowImplicitFlow or knownClientApplications relate to different scenarios (SPA implicit grant and pre-authorized clients, respectively). Setting accessTokenAcceptedVersion to null or 1 continues to limit the API to v1 tokens, so the issuer validation error would remain.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the 'accessTokenAcceptedVersion' property?
Open an interactive chat with Bash
What happens if 'accessTokenAcceptedVersion' is not properly configured?
Open an interactive chat with Bash
How does the v2.0 endpoint differ from the v1.0 endpoint in Microsoft Entra ID?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Implement Azure security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .