Share via


VisualStudioCodeCredential Class

  • java.lang.Object
    • com.azure.identity.VisualStudioCodeCredential

Implements

public class VisualStudioCodeCredential
implements TokenCredential

Enables authentication to Microsoft Entra ID using the user account signed in through the Azure Resources extension in Visual Studio Code.

Prerequisites:

  1. Install the Azure Resources extension in Visual Studio Code and sign in using the Azure: Sign In command.
  2. Add the azure-identity-broker dependency to your project's build configuration.

Method Summary

Modifier and Type Method and Description
Mono<AccessToken> getToken(TokenRequestContext request)

Methods inherited from java.lang.Object

Method Details

getToken

public Mono<AccessToken> getToken(TokenRequestContext request)

Parameters:

request

Applies to