Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AuthenticationService

Hierarchy

  • AuthenticationService

Implemented by

Index

Properties

Readonly onDidChangeSessions

onDidChangeSessions: Event<{ event: AuthenticationSessionsChangeEvent; label: string; providerId: string }>

Readonly onDidRegisterAuthenticationProvider

onDidRegisterAuthenticationProvider: Event<AuthenticationProviderInformation>

Readonly onDidUnregisterAuthenticationProvider

onDidUnregisterAuthenticationProvider: Event<AuthenticationProviderInformation>

Methods

getLabel

  • getLabel(providerId: string): string

getProviderIds

  • getProviderIds(): string[]

getSessions

isAuthenticationProviderRegistered

  • isAuthenticationProviderRegistered(id: string): boolean

login

logout

  • logout(providerId: string, sessionId: string): Promise<void>

registerAuthenticationProvider

requestNewSession

  • requestNewSession(id: string, scopes: string[], extensionId: string, extensionName: string): void

signOutOfAccount

  • signOutOfAccount(providerId: string, accountName: string): Promise<void>

supportsMultipleAccounts

  • supportsMultipleAccounts(providerId: string): boolean

unregisterAuthenticationProvider

  • unregisterAuthenticationProvider(id: string): void

updateSessions