Where is the issue?
- Web app
- Web API
- Token cache serialization
- Other (please describe)
Repro
- Select test project blazorserver-calls-api in Microsoft.Identity.Web.
- Remove scope from this code in Startup.cs, by updating as below:
services.AddMicrosoftIdentityWebAppAuthentication(Configuration)
.EnableTokenAcquisitionToCallDownstreamApi()
.AddInMemoryTokenCaches();
- Run the application and Sign-in. Select ToDoList.
Expected behavior
Consent screen should be displayed.
Actual behavior
Requests goes into infinite loop.
Possible solution
Resolved with this Pull Request.
Where is the issue?
Repro
services.AddMicrosoftIdentityWebAppAuthentication(Configuration)
.EnableTokenAcquisitionToCallDownstreamApi()
.AddInMemoryTokenCaches();
Expected behavior
Consent screen should be displayed.
Actual behavior
Requests goes into infinite loop.
Possible solution
Resolved with this Pull Request.