Interface AuthenticationService
Properties
Readonly onDidChangeSessions
Readonly onDidRegisterAuthenticationProvider
Readonly onDidUnregisterAuthenticationProvider
Methods
getLabel
- getLabel(providerId: string): string
getProviderIds
- getProviderIds(): string[]
getSessions
Parameters
providerId: string
Optional scopes: string[]
isAuthenticationProviderRegistered
- isAuthenticationProviderRegistered(id: string): boolean
Parameters
Returns boolean
login
Parameters
providerId: string
scopes: string[]
logout
- logout(providerId: string, sessionId: string): Promise<void>
Parameters
providerId: string
sessionId: string
Returns Promise<void>
registerAuthenticationProvider
requestNewSession
- requestNewSession(id: string, scopes: string[], extensionId: string, extensionName: string): void
Parameters
id: string
scopes: string[]
extensionId: string
extensionName: string
Returns void
signOutOfAccount
- signOutOfAccount(providerId: string, accountName: string): Promise<void>
Parameters
providerId: string
accountName: string
Returns Promise<void>
supportsMultipleAccounts
- supportsMultipleAccounts(providerId: string): boolean
Parameters
Returns boolean
unregisterAuthenticationProvider
- unregisterAuthenticationProvider(id: string): void