Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--audiences"],
arg_group="Properties",
help="The aud value in the token sent to Azure for getting the user-assigned managed identity token. The value configured in the federated credential and the one in the incoming token must exactly match for Azure to issue the access token.",
default=["api://AzureADTokenExchange"],
Copy link

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

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

The default audience string is duplicated in two places. Consider extracting it into a shared constant (e.g., DEFAULT_AUDIENCES) to avoid magic literals and simplify future updates.

Suggested change
default=["api://AzureADTokenExchange"],
default=DEFAULT_AUDIENCES,

Copilot uses AI. Check for mistakes.
)
_args_schema.issuer = AAZStrArg(
options=["--issuer"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--audiences"],
arg_group="Properties",
help="The aud value in the token sent to Azure for getting the user-assigned managed identity token. The value configured in the federated credential and the one in the incoming token must exactly match for Azure to issue the access token.",
default=["api://AzureADTokenExchange"],
Copy link

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

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

The default audience string is duplicated in two files. Consider extracting it into a shared constant to reduce duplication and ease maintenance.

Suggested change
default=["api://AzureADTokenExchange"],
default=[DEFAULT_AUDIENCE],

Copilot uses AI. Check for mistakes.
)
_args_schema.issuer = AAZStrArg(
options=["--issuer"],
Expand Down
Loading