Azure DevOps Auth Provider - Authentication Provider API Sample

更新:2026-07-14

说明

# 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.

来源

https://github.com/microsoft/vscode-extension-samples/blob/main/authenticationprovider-sample/README.md

← 返回全部 Skill