Skip to content

port: CQA to support TokenCredential instead of key #4879

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sw-joelmut
Copy link
Collaborator

Related DotNet issue microsoft/botbuilder-dotnet#6889
#minor

Description

This PR adds the ability to use a Managed Identity ClientId to authenticate to the Language service.

Specific Changes

  • Added managedIdentityClientId property to the QnAMakerDialog config.
  • Added withEndpointKey and withManagedIdentityClientId methods to the QnAMakerDialog class to configure which authentication the request will use.
  • Added the ability to detect and get the MSI token in the httpRequestUtils file.

Testing

The following image shows the bot working with both authorization types.
image

@sw-joelmut sw-joelmut requested a review from tracyboehrer May 8, 2025 09:41
@sw-joelmut sw-joelmut changed the title CQA to support TokenCredential instead of key port: CQA to support TokenCredential instead of key May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant