Package com.azure.identity
Class VisualStudioCodeCredential
java.lang.Object
com.azure.identity.VisualStudioCodeCredential
- All Implemented Interfaces:
com.azure.core.credential.TokenCredential
public class VisualStudioCodeCredential
extends Object
implements com.azure.core.credential.TokenCredential
Enables authentication to Azure Active Directory 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 Details
-
getToken
public Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request) - Specified by:
getToken
in interfacecom.azure.core.credential.TokenCredential
-