AzureAD/microsoft-identity-abstractions-for-dotnet

[Feature Request] Update the 'IAuthorizationHeaderProvider' interface to include a new method 'GetAuthorizationHeaderAsync'

Closed this issue · 0 comments

What?
This PR updates the IAuthorizationHeaderProvider interface to include the CreateAuthorizationHeaderAsync API. This new API allows for acquiring an authorization header on behalf of either a user or an application. This is a breaking change. To accomodate it Microsoft.Identity.Abstractions will update its major version.

Why?
The current interface exposes separate APIs for obtaining headers on behalf of a user and an app.
The existing method for acquiring a header on behalf of an app does not accept a ClaimsPrincipal, limiting the flexibility and usability of the current API.