⚠ Deprecated: Legacy
This package has been deprecated, mainly because of its problems when used with .NET MAUI Blazor Hybrid apps. Another Blazorade library focusing on authentication will come out in the future that will support Blazor on any platform, including .NET MAUI Blazor Hybrid apps.
Suggested alternative: Blazorade.Id
Provides easy to use authentication and token acquisition for Blazor applications with the help of Microsoft Authentication Library. Supports both Blazor Server and Blazor WebAssembly applications.
$ dotnet add package Blazorade.MsalProvides easy to use authentication and token acquisition for Blazor applications with the help of Microsoft Authentication Library. Supports both Blazor Server and Blazor WebAssembly applications.
After you have installed the package to your application, refer to the Getting Started section on the package wiki for information on how to easily get started with Blazorade MSAL.
Blazorade MSAL facilitates authentication and authorization for instance with the following services.
BlazoradeMsalService - A service class that handles all communication with the MSAL JavaScript library for you. You don't have to write a single line of JavaScript code in your application.BlazoradeRequestFactory - A factory service that creates HttpRequestMessage instances. These request messages are configured with an access token provided by BlazoradeMsalService which enables you to easily call into APIs such as Microsoft Graph.These services are registered in your application's service collection with the AddBlazoradeMsal method as described in the Getting Started section on the Blazoarde MSAL wiki.
The Github repository for Blazorade MSAL contains several sample applications that demonstrate how you can leverage Blazorade MSAL in your own application.
This section lists the main improvements in each published version.
Added support for Azure AD B2C as Identity Provider.
This version includes the following pull requests.
To learn more, read these Blazorade MSAL articles on Mika Berglund's blog.