Skip to content

Fix A365 default scope to use .default suffix#119

Open
singankit wants to merge 1 commit intomainfrom
fix/a365-default-scope
Open

Fix A365 default scope to use .default suffix#119
singankit wants to merge 1 commit intomainfrom
fix/a365-default-scope

Conversation

@singankit
Copy link
Copy Markdown
Member

Change _A365_DEFAULT_SCOPE from
api://9b975845-388f-4429-889e-eab1ef63949c/Agent365.Observability.OtelWrite to api://9b975845-388f-4429-889e-eab1ef63949c/.default

Change _A365_DEFAULT_SCOPE from
api://9b975845-388f-4429-889e-eab1ef63949c/Agent365.Observability.OtelWrite
to api://9b975845-388f-4429-889e-eab1ef63949c/.default

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 18:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the default A365 OAuth scope used for token acquisition to use the .default suffix, aligning with Azure AD’s recommended pattern for application scopes.

Changes:

  • Changed _A365_DEFAULT_SCOPE from a specific scope (.../Agent365.Observability.OtelWrite) to the .default scope (.../.default).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rads-1996
Copy link
Copy Markdown
Member

@singankit Is there any specific reason for wanting to change the default scope? Currently we align with the export path in the upstream A365 sdk - microsoft/Agent365-python@8622478

@singankit
Copy link
Copy Markdown
Member Author

@singankit Is there any specific reason for wanting to change the default scope? Currently we align with the export path in the upstream A365 sdk - microsoft/Agent365-python@8622478

When existing scope is used to get token it fails. Hence raised this PR.



_A365_DEFAULT_SCOPE = "api://9b975845-388f-4429-889e-eab1ef63949c/Agent365.Observability.OtelWrite"
_A365_DEFAULT_SCOPE = "api://9b975845-388f-4429-889e-eab1ef63949c/.default"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why makes this change? Agent365.Observability.OtelWrite should work

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/Agent365.Observability.OtelWrite should work and it is the permission needed for observability. No need to have default. This is also recommended by agent team.

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.

4 participants