Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AuthenticationProvider

WARNING When writing an AuthenticationProvider, id should be treated as part of your extension's API, changing it is a breaking change for all extensions relying on the provider. The id is treated case-sensitively.

Hierarchy

  • AuthenticationProvider

Index

Properties

Readonly id

id: string

Used as an identifier for extensions trying to work with a particular provider: 'microsoft', 'github', etc. id must be unique, registering another provider with the same id will fail.

Readonly label

label: string

The human-readable name of the provider.

Readonly onDidChangeSessions

An event which fires when the array of sessions has changed, or data within a session has changed.

Readonly supportsMultipleAccounts

supportsMultipleAccounts: boolean

Whether it is possible to be signed into multiple accounts at once with this provider

Methods

getSessions

login

logout

  • logout(sessionId: string): Thenable<void>