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

Configurable Azure authentication middleware for support of custom token providers #16

Closed
Tracked by #366
kostrse opened this issue Nov 1, 2022 · 2 comments · Fixed by #28
Closed
Tracked by #366

Comments

@kostrse
Copy link
Collaborator

kostrse commented Nov 1, 2022

Add support for parametrization into the Azure authentication middleware to support custom token providers which are not directly implemented in the SDK.

@andresmgot
Copy link
Contributor

Can you elaborate on this issue @kostrse ? An example would be nice

@kostrse
Copy link
Collaborator Author

kostrse commented Nov 23, 2022

Currently AzureMiddleware implemented to call AzureTokenService and there's no way to customize this behavior. We're getting into a situation when different datasources may support different authentication types. ADX supports OBO which other datasources do not support etc.

So it would be great to be able to pass configuration to the AzureMIddleware during initialization to override its behavior

e.g. here

azhttpclient.AddAzureAuthentication(opts, { a custom list of token providers }, credentials, scopes)

To make this code block configurable.

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

Successfully merging a pull request may close this issue.

3 participants