You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call succeeds even if the config section is empty. We are using dotnet user-secrets and had not added a "AzureAdB2C" section in one of our developers secrets stores. The result was a misbehaving app since authentication was not setup but no other error happened right away.
Reproduction steps
Add a new mvc app with dotnet new mvc -n ExampleApp
Microsoft.Identity.Web Library
Microsoft.Identity.Web
Microsoft.Identity.Web version
3.0.1
Web app
Sign-in users and call web APIs
Web API
Protected web APIs call downstream web APIs
Token cache serialization
In-memory caches
Description
When using the AddMicrosoftIdentityWebApi with the following code:
The call succeeds even if the config section is empty. We are using dotnet user-secrets and had not added a "AzureAdB2C" section in one of our developers secrets stores. The result was a misbehaving app since authentication was not setup but no other error happened right away.
Reproduction steps
dotnet new mvc -n ExampleApp
Microsoft.Identity.Web 3.0.1
Porgram.cs
:and run the application. No Exception is thrown even though no configuration section for "AzureAdB2C" exists.
Error message
No response
Id Web logs
No response
Relevant code snippets
Regression
No response
Expected behavior
When the "AzureAdB2C" section is missing it should crash with an exception right away.
The text was updated successfully, but these errors were encountered: