Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support Microsoft Entra (Bearer XXX) authentication for Azure model provider#4213

GabrielBianconi started this conversation inFeature Requests
Discussion options

Tip

Currently, you can get around this limitation with theextra_headers feature.


via#4148

Today, our Azure model provider supportsapi_key in the configuration which sends anapi-key header.

We also want to support the other kind:

API Key authentication: For this type of authentication, all API requests must include the API Key in the api-key HTTP header. TheQuickstart provides guidance for how to make calls with this type of authentication.

Microsoft Entra ID authentication: You can authenticate an API call using a Microsoft Entra token. Authentication tokens are included in a request as the Authorization header. The token provided must be preceded by Bearer, for example Bearer YOUR_AUTH_TOKEN. You can read our how-to guide onauthenticating with Microsoft Entra ID.


Proposed Solution

When configuring the Azure model provider, the user can specify either (XOR):

  • api_key
  • bearer_auth_token

The former is the current behavior. The latter sendsBearer YOUR_AUTH_TOKEN. Thebearer_auth_token should 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.

You must be logged in to vote

Replies: 1 comment

Comment options

I suspect that we'll want to use the Azure Rust sdk (https://docs.rs/azure_identity/latest/azure_identity/) so we can support all of Azure's methods of obtaining a bear token (similar to what we do for GCP)

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@GabrielBianconi@Aaron1011

[8]ページ先頭

©2009-2025 Movatter.jp