Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtaining an authorization token is done in the RequestAdapter and not in middleware #3941

Closed
darrelmiller opened this issue Dec 19, 2023 · 0 comments
Labels

Comments

@darrelmiller
Copy link
Member

In order to decouple authorization from the native HTTP client library, the IAuthenticationProvider interface depends on the RequestInformation abstraction. The RequestInformation object is available in the RequestAdapter but does not get passed through to the middleware pipeline. In order to use the AuthenticationProvider during the middleware pipeline, the native request message would need to be translated back into a RequestInformation object which would be redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant