Skip to content
Merged
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
1 change: 1 addition & 0 deletions sdk/identity/azure-identity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Breaking Changes

### Bugs Fixed
- Fixed `AzureDeveloperCliCredential` hanging when `AZD_DEBUG` environment variable is set by adding `--no-prompt` flag to the `azd auth token` command.
Comment thread
g2vinay marked this conversation as resolved.

### Other Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public Mono<AccessToken> authenticateWithAzureCli(TokenRequestContext request) {
* @return a Publisher that emits an AccessToken
*/
public Mono<AccessToken> authenticateWithAzureDeveloperCli(TokenRequestContext request) {
StringBuilder azdCommand = new StringBuilder("azd auth token --output json --scope ");
StringBuilder azdCommand = new StringBuilder("azd auth token --output json --no-prompt --scope ");
List<String> scopes = request.getScopes();

// It's really unlikely that the request comes with no scope, but we want to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public AccessToken authenticateWithAzureCli(TokenRequestContext request) {
*/
public AccessToken authenticateWithAzureDeveloperCli(TokenRequestContext request) {

StringBuilder azdCommand = new StringBuilder("azd auth token --output json --scope ");
StringBuilder azdCommand = new StringBuilder("azd auth token --output json --no-prompt --scope ");

List<String> scopes = request.getScopes();

Expand Down