AzureAD / microsoft-identity-web

Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
MIT License
679 stars 210 forks source link

What Configuration Settings? #1441

Open jsquire opened 3 years ago

jsquire commented 3 years ago

Issue Transfer

This issue has been transferred from the Azure SDK for .NET repository, #23949.

Please be aware that @rjarratt is the author of the original issue and include them for any questions and replies.

Details

The overloads that take a configuration section says it needs "the necessary settings", but it doesn't tell you what those necessary settings are. I thought it might be the settings in JwtBearerOptions and MicrosoftIdentityOptions, but that can't be right because when I use the ASP.NET Core template in Visual Studio it includes an option that is not in either of these classes (CallbackPath). So can we please say what configuration settings are required?

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

jmprieur commented 3 years ago

@jsquire these (JwtBearerOptions and MicrosoftIdentityOptions) are the right settings. if this is a pure web API, the callback path is not needed. (left over from the past, as is the reference to the OpenIdConnect middleware)

It can be useful, for web apis which also are web apps (with multiple authentication schemes)

rjarratt commented 3 years ago

Can the documentation explicitly state how a person knows what the "necessary settings" are please?

jsquire commented 3 years ago

@jmprieur: Please be aware that @rjarratt is the author of the original issue and is the individual that you'll want to include in discussions. My involvement was just triage for the Azure SDK repository.