你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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