net8.0.NETStandard2.0
Library for creating authentication tokens for agents using MSAL in Microsoft Agent SDK
Published
Jul 30, 2025
1y ago
Total Downloads
727.9K
727,904
Install
dotnet add package Microsoft.Agents.Authentication.Msal --version 1.2.27-beta
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
Microsoft.Agents.Authentication.Msal
Provides the MSAL IAccessTokenProvider implementation to get tokens.
Example configuration
"Connections": {
"ServiceConnection": {
"Settings": {
"AuthType": "ClientSecret", // this is the AuthType for the connection, valid values can be found in Microsoft.Agents.Authentication.Msal.Model.AuthTypes. The default is ClientSecret.
"AuthorityEndpoint": "https://login.microsoftonline.com/{{TenantId}}",
"ClientId": "00000000-0000-0000-0000-000000000000", // this is the Client ID used for the connection.
"ClientSecret": "00000000-0000-0000-0000-000000000000", // this is the Client Secret used for the connection.
"Scopes": [
"https://api.botframework.com/.default"
]
}
}
}
Changes from Previous Version
v1.2.21-betav1.2.27-beta
Added Frameworks
net8.0.NETStandard2.0
Added Dependencies
Microsoft.Agents.Authentication(net8.0)
Microsoft.Extensions.Http(net8.0)
Microsoft.Extensions.Logging(net8.0)
Microsoft.Identity.Client(net8.0)
Microsoft.Agents.Authentication(.NETStandard2.0)
Microsoft.Extensions.Configuration(.NETStandard2.0)
Microsoft.Extensions.Configuration.Binder(.NETStandard2.0)
Microsoft.Extensions.DependencyInjection(.NETStandard2.0)
+7 moreAdoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.The published metadata declares 22 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.