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

VisualStudioCodeCredential Class

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

Implements

@Deprecated
public class VisualStudioCodeCredential
implements TokenCredential

Note

This class has been deprecated. This credential is deprecated because the VS Code Azure Account extension on which this credential relies has been deprecated. Users should use other dev-time credentials, such as AzureCliCredential, AzureDeveloperCliCredential, AzurePowerShellCredential or IntelliJCredential for their local development needs. See this issue for Azure Account extension deprecation notice.

Enables authentication to Microsoft Entra ID as the user signed in to Visual Studio Code via the 'Azure Account' extension.

It's a known issue that this credential doesn't work with Azure Account extension versions newer than 0.9.11. A long-term fix to this problem is in progress. In the meantime, consider authenticating with AzureCliCredential.

Method Summary

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

Methods inherited from java.lang.Object

Method Details

getToken

public Mono getToken(TokenRequestContext request)

Parameters:

request

Applies to