Bill Wert

Results 33 comments of Bill Wert

/azp run java - identity

/azp run java - identity

/azp run java - identity

/azp run java - identity

/azp run java - identity

Hello @Danieladu! Can you try using the asynchronous `getToken()` method instead of `getTokenSync()`? Something like: ``` val token = managedIdentityCredential.getToken(new TokenRequestContext().addScopes("api://AzureADTokenExchange/.default")).block() ``` Let me know if that still hits the...

Got it. You'll have to swap to using `getToken` instead of `getTokenSync`. Try this: ```java Supplier supplier2 = () -> { CompletableFuture future = new CompletableFuture(); credential.getToken(request).subscribe(t -> future.complete(t.getToken())); return...

After discussion with the Java architects, Java will continue throwing in `getToken` instead of in the constructor.

Hi @v-jiaodi I will take a look at this soon (probably next week.)

working on this in #44141.