microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.26k stars 3.12k forks source link

OpenAI token authentication fails in AzureUSGovernment cloud #6255

Closed ebclark2 closed 1 week ago

ebclark2 commented 3 months ago

Describe the bug OpenAI token authentication fails in AzureUSGovernment cloud with invalid token/audience error.

To Reproduce In AzureUSGovernment configure OpenAI Auth type to "AzureIdentity" and provide a valid idenitty.

Expected behavior OpenAI calls authenticate successfully.

Screenshots image

Platform

Additional context See OpenAIClient Issue

markwallace-microsoft commented 3 months ago

@ebclark2 Thanks for creating the issue. Does this scenario work if you use the Azure OpenAI SDK directly?

ebclark2 commented 3 months ago

No, it does not. I was able to confirm the problem is the token scope. It works if I build a new version of the openai SDK with the correct scope.

On Wed, May 15, 2024, 4:08 AM Mark Wallace @.***> wrote:

@ebclark2 https://github.com/ebclark2 Thanks for creating the issue. Does this scenario work if you use the Azure OpenAI SDK https://www.nuget.org/packages/Azure.AI.OpenAI/1.0.0-beta.17 directly?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/semantic-kernel/issues/6255#issuecomment-2111848927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGIEZB7ED6272W4UQA64RDZCMJYBAVCNFSM6AAAAABHWQFPAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJRHA2DQOJSG4 . You are receiving this because you were mentioned.Message ID: @.***>

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 14 days since being marked as stale.