Skip to content

[#417] Support sovereign / national clouds#467

Merged
rido-min merged 6 commits intomainfrom
southworks/update/custom-authority-setting
Jul 18, 2025
Merged

[#417] Support sovereign / national clouds#467
rido-min merged 6 commits intomainfrom
southworks/update/custom-authority-setting

Conversation

@ceciliaavila
Copy link
Copy Markdown
Collaborator

Fixes #417

Description

This PR contains the changes to make the authority endpoint configurable, allowing the use of national clouds in CopilotStudioClient and Agents-Hosting packages.
The default value is the public cloud URL: https://login.microsoftonline.com.

Detailed Changes

  • Added the authorityEndpoint property in:
    • ConnectionSettings
    • copilotStudioConnectionSettings
    • authConfiguration
  • Replaced hard-coded values with the value read from the configuration in msalTokenProvider and jwt-middleware
  • Updated unit tests to verify the correct population of the property in authConfiguration.test.ts
  • Updated copilotstudio-console and copilotstudio-webchat samples to use the authority from the settings.

Testing

These images show the samples working after the changes
image

rido-min
rido-min previously approved these changes Jul 17, 2025
Copy link
Copy Markdown
Member

@rido-min rido-min left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ceciliaavila
Copy link
Copy Markdown
Collaborator Author

LGTM !!

and dont forget to update this doc https://github.com/microsoft/Agents/blob/main/docs/HowTo/azurebot-auth-for-js.md

@Rido, could you please give us access to the agents repo to place a PR for this change? Thanks!

@rido-min
Copy link
Copy Markdown
Member

LGTM !!
and dont forget to update this doc https://github.com/microsoft/Agents/blob/main/docs/HowTo/azurebot-auth-for-js.md

@Rido, could you please give us access to the agents repo to place a PR for this change? Thanks!

you should have permissions now

@ceciliaavila
Copy link
Copy Markdown
Collaborator Author

LGTM !!

and dont forget to update this doc https://github.com/microsoft/Agents/blob/main/docs/HowTo/azurebot-auth-for-js.md

Document updated in PR#214

@rido-min rido-min merged commit 2b23d76 into main Jul 18, 2025
7 checks passed
@rido-min rido-min deleted the southworks/update/custom-authority-setting branch July 18, 2025 16:19
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.

Support sovereign / national clouds

2 participants