Skip to content

nich2408/BlazorMsalWithApiSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msal

🔐☁ Blazor MSAL with API sample

In this repository you can find a sample on how to use authentication inside a Blazor app.

The sample provided uses MSAL library https://learn.microsoft.com/en-us/entra/identity-platform/msal-overview and Azure (Microsoft Entra).

📁 Contents

  • BlazorMsalWithApiSample.API contains a REST API with a sample controller that requires the client to be authenticated.
  • BlazorMsalWithApiSample.Blazor contains the Blazor project with authentication.
  • BlazorMsalWithApiSample.Shared contains simple models.

💻 Usage

API must be running in order to access the FetchData page from the Blazor app.

If you are using Visual Studio, it's better to enable multiple startup projects like so:

image

image

❔ Other info

  • The projects were created using dotnet-8 with Visual Studio 2022 Community Edition
  • Blazor, Azure and Microsoft Entra logos are property of Microsoft https://www.microsoft.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published