Interface AuthenticationService

interface AuthenticationService {
    onDidChangeSessions: Event<{
        event: AuthenticationProviderAuthenticationSessionsChangeEvent;
        label: string;
        providerId: string;
    }>;
    onDidRegisterAuthenticationProvider: Event<AuthenticationProviderInformation>;
    onDidUnregisterAuthenticationProvider: Event<AuthenticationProviderInformation>;
    onDidUpdateSignInCount: Event<number>;
    getLabel(providerId): string;
    getProviderIds(): string[];
    getSessions(providerId, scopes?, user?): Promise<readonly AuthenticationSession[]>;
    isAuthenticationProviderRegistered(id): boolean;
    login(providerId, scopes, options?): Promise<AuthenticationSession>;
    logout(providerId, sessionId): Promise<void>;
    registerAuthenticationProvider(id, provider): void;
    requestNewSession(id, scopes, extensionId, extensionName): void;
    signOutOfAccount(providerId, accountName): Promise<void>;
    supportsMultipleAccounts(providerId): boolean;
    unregisterAuthenticationProvider(id): void;
    updateSessions(providerId, event): void;
}

Implemented by

Properties

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

Type declaration

onDidRegisterAuthenticationProvider: Event<AuthenticationProviderInformation>
onDidUnregisterAuthenticationProvider: Event<AuthenticationProviderInformation>
onDidUpdateSignInCount: Event<number>

Methods