dotnet add package Blazorade.Msal --version 2.2.0
NuGet\Install-Package Blazorade.Msal -Version 2.2.0
<PackageReference Include="Blazorade.Msal" Version="2.2.0" />
paket add Blazorade.Msal --version 2.2.0
#r "nuget: Blazorade.Msal, 2.2.0"
// 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
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.
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.
BlazoradeRequestFactory- A factory service that creates
HttpRequestMessageinstances. These request messages are configured with an access token provided by
BlazoradeMsalServicewhich 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.
- 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.
This section lists the main improvements in each published version.
Added support for Azure AD B2C as Identity Provider.
- Azure AD B2C Support
- Getting Started: Added documentation to the Getting Started section on how to configure your application for Azure AD B2C.
This version includes the following pull requests.
To learn more, read these Blazorade MSAL articles on Mika Berglund's blog.
|.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|
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.