mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
20 lines
734 B
Markdown
20 lines
734 B
Markdown
# Azure DevOps Auth Provider - Authentication Provider API Sample
|
|
|
|
Demonstrates VS Code's authentication provider API by registering and using an Azure DevOps Personal Access Token authentication provider.
|
|
|
|
## VS Code API
|
|
|
|
### `vscode` module
|
|
|
|
- [`authentication.registerAuthenticationProvider`](https://code.visualstudio.com/api/references/vscode-api#authentication.registerAuthenticationProvider)
|
|
- [`authentication.getSession`](https://code.visualstudio.com/api/references/vscode-api#authentication.getSession)
|
|
|
|
## Running the example
|
|
|
|
- Open this example in VS Code 1.60+
|
|
- `npm install`
|
|
- `cmd/ctrl+shift+b` or `npm run watch` or `npm run compile`
|
|
- `F5` to start debugging
|
|
|
|
Run the `Login with Azure DevOps` command to log in.
|
|
|