Skip to content

Use env var for scope similar to dotnet sdk.#22

Merged
sellakumaran merged 8 commits intomainfrom
users/sellak/entraSDK
Nov 4, 2025
Merged

Use env var for scope similar to dotnet sdk.#22
sellakumaran merged 8 commits intomainfrom
users/sellak/entraSDK

Conversation

@sellakumaran
Copy link
Copy Markdown
Contributor

Use env var for scope similar to dotnet sdk.

Copilot AI review requested due to automatic review settings November 3, 2025 16:19
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

This PR adds support for configuring the authentication scope via an environment variable MCP_PLATFORM_AUTHENTICATION_SCOPE in the AgenticAuthenticationService. This allows runtime customization of the scope used for token exchange instead of always using the hardcoded default scope.

  • Extracts scope determination logic into a new private static method getScope()
  • Adds support for environment variable MCP_PLATFORM_AUTHENTICATION_SCOPE to override the default scope
  • Falls back to the existing default scope format when the environment variable is not set

joratz
joratz previously approved these changes Nov 3, 2025
Copilot AI review requested due to automatic review settings November 3, 2025 16:53
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings November 3, 2025 17:01
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

joratz
joratz previously approved these changes Nov 3, 2025
Copilot AI review requested due to automatic review settings November 3, 2025 23:55
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@sellakumaran sellakumaran merged commit b146d8d into main Nov 4, 2025
11 checks passed
@sellakumaran sellakumaran deleted the users/sellak/entraSDK branch November 4, 2025 00:54
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