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.
Activity
jmprieur commentedon Apr 9, 2021
Thanks Guillaume ROUCHON (@qetza)
The options to call an API would then become:
GraphServiceClientIDownstreamWebApiTokenAcquisitionTokenCredentialwhich was introduced in 1.9TokenAcquisitionDelegateHandlerITokenAcquisition.qetza commentedon Jul 22, 2021
Any idea when the PR will be included and released?
jennyf19 commentedon Jul 26, 2021
Included in 1.15 release