Support Microsoft Entra (Bearer XXX) authentication for Azure model provider
#4213
GabrielBianconi
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tip
Currently, you can get around this limitation with the
extra_headersfeature.Today, our Azure model provider supports
api_keyin the configuration which sends anapi-keyheader.We also want to support the other kind:
Proposed Solution
When configuring the Azure model provider, the user can specify either (XOR):
api_keybearer_auth_tokenThe former is the current behavior. The latter sends
Bearer YOUR_AUTH_TOKEN. Thebearer_auth_tokenshould supportenv,dynamic, and so on - just likeapi_key.We'll need to figure out how to test this internally. https://learn.microsoft.com/en-us/azure/ai-foundry/openai/how-to/managed-identity
We should update the docs accordingly.
Beta Was this translation helpful? Give feedback.
All reactions