staticwebdev / blazor-starter

A starter template in C# APIs and Blazor for Azure Static Web Apps
219 stars 111 forks source link

Question: adding Microsoft Authentication to this? #34

Open jacksorjacksor opened 2 years ago

jacksorjacksor commented 2 years ago

Hi there - this isn't so much an issue as a question.

How would I go about adding Microsoft Authentication to this? So many of the tutorial resources start with a new project which has authentication selected on creation ("create a new app with Authentication = Microsoft Authentication", or "use this CLI command which sets the auth") but I've been struggling with adapting this app to use authentication with Azure AD.

Any help would be greatly appreciated - if there's a better place to ask such questions please let me know.

Rich

seekdavidlee commented 1 year ago

@jacksorjacksor - you can find lots of examples of adding authentication on the official docs here.

However, based on the docs, for my use case around a standalone blazor wasm with b2c, it seemed appsettings.json would be where the configuration for auth settings would be configured. Operationally, it does not appear static webapp supports setting the values for the appsettings.json? Or maybe I am missing something and appreciate any help in this direction.