Microsoft.Identity.Abstractions 7.2.0

CI

Microsoft.Identity.Abstractions

Microsoft.Identity.Abstractions contain interfaces and POCO classes used in the Microsoft .NET authentication libraries (Microsoft.IdentityModel, MSAL.NET and Microsoft.Identity.Web). It exposes concepts in three domains:

  1. Application options and credentials loader

    The application options are typically the options that you find in configuration files like the appsettings.json file. They describe the authentication aspects of your application. The library offers two layer. A standard layer, and a Microsoft Identity platform specialization.

    image

    An important part of the application options are the credentials. In addition to the credential descriptions, the library offers extensibility mechanisms so that implementers can add their own credential source loaders.

    image

    There can be several application options with different names (for instance in ASP.NET Core these would be different authentication schemes)

  2. Acquire tokens from Azure AD

    Once configured, an application can acquire tokens from the Identity provider. This is a low level API, in the sense that you would probably prefer to call downstream web APIs without having to be preoccupied about the authentication aspects. If you really want to use the lower level API, you should:

    • get hold of a ITokenAcquirerFactory. Implementations can provide a TokenAcquirerFactory for instance, with a singleton.
    • get a ITokenAcquirer (by its name, for instance). This corresponds to the application options
    • From the token acquirer get a token for on behalf of the user, or the app. If you don't specify any AcquireTokenOptions, the implementation should do its best effort. The AcquireTokenOptions enable you to override the defaults.

    image

  3. Calling downstream web APIs

    It's also possible (and recommended) to use higher level APIs:

    • IDownstreamApi enables you to call a downstream web API and let the implementation handle the serialization of the input parameter (if any), handling the getting the authorization header and attaching it to the HttpClient, call the downstream web API, handle errors, deserialize the answer and return it as a strongly typed object. You can use customize all these steps, for instance by providing your own serializer / deserializer.
    • IAuthorizationHeaderProvider is the component that provides the authorization header, delegating to the ITokenAcquirer. Whereas ITokenAcquirer only knows about tokens, IAuthorizationHeaderProvider knows about protocols (for instance bearer, Pop, etc ...)

    image

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Showing the top 20 packages that depend on Microsoft.Identity.Abstractions.

Packages Downloads
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
60
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
59
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
58
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
58
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
49
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
48
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
47
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
45
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
42
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
41
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
36
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
34
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
33
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
25
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
24
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
22
Microsoft.Identity.Web.Certificate
This package brings certificate management for MSAL.NET.
16

The release notes are available at https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet/releases and the roadmap at https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet/wiki#roadmap

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
7.2.0 13 11/16/2024
7.1.0 65 09/25/2024
7.0.0 0 07/30/2024
6.0.0 131 06/24/2024
5.3.0 86 04/26/2024
5.2.0 3 04/26/2024
5.1.0 62 03/26/2024
5.0.0 6 03/25/2024
4.1.0 6 03/25/2024
4.0.0 5 03/25/2024
3.2.1 5 03/25/2024
3.2.0 4 03/25/2024
3.1.0 5 03/25/2024
3.0.1 4 03/25/2024
3.0.0 4 03/25/2024
2.1.0 4 03/25/2024
2.0.1 4 03/25/2024
2.0.0 5 03/25/2024
1.2.0 5 03/25/2024
1.1.0 4 03/25/2024
1.0.6-preview 4 03/25/2024
1.0.5-preview 5 03/25/2024
1.0.4-preview 5 03/25/2024
1.0.3-preview 5 03/25/2024
1.0.2-preview 4 03/25/2024
1.0.1-preview 6 03/25/2024
1.0.0-preview 4 03/25/2024