You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently for using Microsoft.Identity.Web when calling APIs you have to use IDownstreamWebApi or do it manually through ITokenAcquisition. This can be complicated/time consuming for existing applications.
Describe the solution you'd like
It would be a good solution to provide a DelegatingHandler which would use ITokenAcquisition to get a token and inject it in the Authorization HTTP headers. This way you only have to update your Startup class where you register your HTTP clients.
This can also benefit for teams that prefer managing all HTTP connection transversal topics through DelegatingHandler (Polly...).
Describe alternatives you've considered
Additional context
I've already discuss this with Jean-Marc and as I have a basic implementation done I will send PR.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently for using Microsoft.Identity.Web when calling APIs you have to use
IDownstreamWebApi
or do it manually throughITokenAcquisition
. This can be complicated/time consuming for existing applications.Describe the solution you'd like
It would be a good solution to provide a DelegatingHandler which would use
ITokenAcquisition
to get a token and inject it in the Authorization HTTP headers. This way you only have to update your Startup class where you register your HTTP clients.This can also benefit for teams that prefer managing all HTTP connection transversal topics through DelegatingHandler (Polly...).
Describe alternatives you've considered
Additional context
I've already discuss this with Jean-Marc and as I have a basic implementation done I will send PR.
The text was updated successfully, but these errors were encountered: