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

OpenAI token authentication fails in AzureUSGovernment cloud #44021

Open
ebclark2 opened this issue May 14, 2024 · 3 comments
Open

OpenAI token authentication fails in AzureUSGovernment cloud #44021

ebclark2 opened this issue May 14, 2024 · 3 comments
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@ebclark2
Copy link

OpenAIClient token authentication fails in AzureUSGovernment cloud. This appears to be due to the token scope being hardcoded to commercial.

Possible cause:
OpenAIClient AudienceScopes
OpenAIClient AudienceScopes use

Error

Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.us), or have expired.
Status: 401 (Unauthorized)

Content:
{ "statusCode": 401, "message": "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.us), or have expired." }

Headers:
x-ms-client-request-id: f2bfc643-5da9-4335-a6bd-b0cb156e9457
apim-request-id: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
Date: Mon, 13 May 2024 19:29:00 GMT
Content-Length: 160
Content-Type: application/json
@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. labels May 14, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.

@GreenCee
Copy link

Tagging a previous issue in a different part of the library for awareness: #18520

@cf-rdegregory
Copy link

We are running into the same issue...making Azure OpenAI unusable from our application in Azure Government.

In the Text Analytics issue linked by @GreenCee, as well as in multiple issues within the python SDK, this bug has been resolved.

@jpalvarezl @trrwilson do you have any update / insight to share on when a fix might be available for the Azure OpenAI SDK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants