Blazorade.Msal 2.2.0

.NET 6.0
dotnet add package Blazorade.Msal --version 2.2.0
NuGet\Install-Package Blazorade.Msal -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazorade.Msal" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blazorade.Msal --version 2.2.0
#r "nuget: Blazorade.Msal, 2.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Blazorade.Msal as a Cake Addin
#addin nuget:?package=Blazorade.Msal&version=2.2.0

// Install Blazorade.Msal as a Cake Tool
#tool nuget:?package=Blazorade.Msal&version=2.2.0

Blazorade MSAL

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.

Getting Started

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.

Highlights

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.

Sample Applications

The Github repository for Blazorade MSAL contains several sample applications that demonstrate how you can leverage Blazorade MSAL in your own application.

  • GraphClient - A WebAssembly application that demonstrates how to send HTTP requests to Microsoft Graph with the help of Blazorade MSAL. Can be applied to any other REST API that requires access tokens.
  • BlazorServerSample - A Blazor Server application that demonstrates how you can make use of the on-demand token acquisition provided by Blazorade MSAL.
  • BlazorWasmSample - The same as BlazorServerSample but implemented as a Blazor WebAssembly application. Shares much of the features with the Server sample through the SharedComponentsSample component library.

Version Highlights

This section lists the main improvements in each published version.

v2.2.0

Added support for Azure AD B2C as Identity Provider.

v2.1.0

This version includes the following pull requests.

Further Reading

To learn more, read these Blazorade MSAL articles on Mika Berglund's blog.

Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 814 9/13/2022
2.1.0 2,438 6/8/2022
2.0.0 1,304 2/28/2022
1.1.1 5,959 3/16/2021
1.1.0 1,628 2/13/2021
1.0.1 232 2/12/2021
1.0.0 247 2/11/2021