Skip to content

Commit

Permalink
Update the default authentication scope for the public cloud. (#22005)
Browse files Browse the repository at this point in the history
  • Loading branch information
pallavit authored Jun 2, 2021
1 parent 32ab07e commit d39fda7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public ContainerRegistryClientBuilder endpoint(String endpoint) {
*
* <p>
* Example:- For Azure public cloud this value is same as AzureEnvironment.Azure.managementEndpoint().
* For more information - http://azure.github.io/ref-docs/java/com/microsoft/azure/AzureEnvironment.html
* For more information - https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/services-support-managed-identities#azure-resource-manager
* </p>
*
* @param authenticationScope ARM management scope associated with the given registry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ContainerRegistryRefreshTokenCredential {
private final TokenCredential aadTokenCredential;
private final TokenServiceImpl tokenService;
private final String authenticationScope;
public static final String AAD_DEFAULT_SCOPE = "https://management.core.windows.net/.default";
public static final String AAD_DEFAULT_SCOPE = "https://management.azure.com/.default";

/**
* Creates an instance of RefreshTokenCredential with default scheme "Bearer".
Expand Down

0 comments on commit d39fda7

Please sign in to comment.