Connects to Azure using the user account signed in through the Azure Resources extension in Visual Studio Code. Once the user has logged in via the extension, this credential can share the same refresh token that is cached by the extension.
Constructors VisualStudioCodeCredential(VisualStudioCodeCredentialOptions)Creates an instance of VisualStudioCodeCredential to use for automatically authenticating via VSCode.
Note: VisualStudioCodeCredential
is provided by a plugin package: @azure/identity-vscode
. If this package is not installed, then authentication using VisualStudioCodeCredential
will not be available.
Creates an instance of VisualStudioCodeCredential to use for automatically authenticating via VSCode.
Note: VisualStudioCodeCredential
is provided by a plugin package: @azure/identity-vscode
. If this package is not installed, then authentication using VisualStudioCodeCredential
will not be available.
new VisualStudioCodeCredential(options?: VisualStudioCodeCredentialOptions)
Parameters Method Details getToken(string | string[], GetTokenOptions)
Returns the token found by searching VSCode's authentication cache or returns null if no token could be found.
function getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>
Parameters
string | string[]
The list of scopes for which the token will have access.
The options used to configure any requests this TokenCredential
implementation might make.
Promise<AccessToken>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4