Container Registry: Allow specifying multiple scopes for a token in the AuthenticationClient #23810
Labels
Client
This issue points to a problem in the data-plane of the library.
Container Registry
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Feature Request
The
azcontainerregistry.AuthenticationClient
provides two methods for token exchange: ExchangeAADAccessTokenForACRRefreshToken and ExchangeACRRefreshTokenForACRAccessToken. The documentation for both these functions defines thescope
parameter as follows:scope - Which is expected to be a valid scope, and can be specified more than once for multiple scope requests.
The API indeed seems to support passing multiple values to represent multiple scope requests, but the SDK only allows passing a single string value, making it impossible to actually pass multiple scopes. Would it be possible to change the interface to allow multiple scopes to be provided? Or add new function calls that allows specifying multiple values?
The text was updated successfully, but these errors were encountered: