Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
VisualStudioCodeCredential Class
- Package:
- com.azure.identity
- Maven Artifact:
- com.azure:azure-identity:1.18.3
- 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:
- Install the Azure Resources extension in Visual Studio Code and sign in using the Azure: Sign In command.
- Add the azure-identity-broker dependency to your project's build configuration.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| reactor.core.publisher.Mono<AccessToken> | getToken(TokenRequestContext request) |
Methods inherited from java.lang.Object
Method Details
getToken
public Mono<AccessToken> getToken(TokenRequestContext request)
Parameters:
request
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
Was this page helpful?
