Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticationServiceImpl

Hierarchy

  • AuthenticationServiceImpl

Implements

Index

Properties

Private authenticationProviders

authenticationProviders: Map<string, AuthenticationProvider> = new Map<string, AuthenticationProvider>()

Protected Readonly commands

commands: CommandRegistry

Protected Readonly menus

Private noAccountsMenuItem

noAccountsMenuItem: Disposable | undefined

Readonly onDidChangeSessions

onDidChangeSessions: Event<{ event: AuthenticationSessionsChangeEvent; label: string; providerId: string }> = this.onDidChangeSessionsEmitter.event

Private onDidChangeSessionsEmitter

onDidChangeSessionsEmitter: Emitter<{ event: AuthenticationSessionsChangeEvent; label: string; providerId: string }> = new Emitter<{ providerId: string, label: string, event: AuthenticationSessionsChangeEvent }>()

Readonly onDidRegisterAuthenticationProvider

onDidRegisterAuthenticationProvider: Event<AuthenticationProviderInformation> = this.onDidRegisterAuthenticationProviderEmitter.event

Private onDidRegisterAuthenticationProviderEmitter

onDidRegisterAuthenticationProviderEmitter: Emitter<AuthenticationProviderInformation> = new Emitter<AuthenticationProviderInformation>()

Readonly onDidUnregisterAuthenticationProvider

onDidUnregisterAuthenticationProvider: Event<AuthenticationProviderInformation> = this.onDidUnregisterAuthenticationProviderEmitter.event

Private onDidUnregisterAuthenticationProviderEmitter

onDidUnregisterAuthenticationProviderEmitter: Emitter<AuthenticationProviderInformation> = new Emitter<AuthenticationProviderInformation>()

Private signInRequestItems

signInRequestItems: Map<string, SessionRequestInfo> = new Map<string, SessionRequestInfo>()

Protected Readonly storageService

storageService: StorageService

Methods

getLabel

  • getLabel(id: string): string

getProviderIds

  • getProviderIds(): string[]

getSessions

init

  • init(): void

isAuthenticationProviderRegistered

  • isAuthenticationProviderRegistered(id: string): boolean

login

logout

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

registerAuthenticationProvider

requestNewSession

  • requestNewSession(providerId: string, scopes: string[], extensionId: string, extensionName: string): Promise<void>

signOutOfAccount

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

supportsMultipleAccounts

  • supportsMultipleAccounts(id: string): boolean

unregisterAuthenticationProvider

  • unregisterAuthenticationProvider(id: string): void

Private updateAccountsMenuItem

  • updateAccountsMenuItem(): void

Private updateNewSessionRequests

updateSessions

Object literals

Private noAccountsCommand

noAccountsCommand: object

id

id: string = "noAccounts"