Theia API Documentation v1.66.0
    Preparing search index...
    interface AuthenticationService {
        onDidChangeSessions: Event<
            {
                event: AuthenticationProviderAuthenticationSessionsChangeEvent;
                label: string;
                providerId: string;
            },
        >;
        onDidRegisterAuthenticationProvider: Event<
            AuthenticationProviderInformation,
        >;
        onDidUnregisterAuthenticationProvider: Event<
            AuthenticationProviderInformation,
        >;
        onDidUpdateSignInCount: Event<number>;
        getLabel(providerId: string): string;
        getProviderIds(): string[];
        getSessions(
            providerId: string,
            scopeListOrRequest?:
                | AuthenticationWwwAuthenticateRequest
                | readonly string[],
            user?: AuthenticationSessionAccountInformation,
        ): Promise<readonly AuthenticationSession[]>;
        isAuthenticationProviderRegistered(id: string): boolean;
        login(
            providerId: string,
            scopeListOrRequest:
                | AuthenticationWwwAuthenticateRequest
                | readonly string[],
            options?: AuthenticationProviderSessionOptions,
        ): Promise<AuthenticationSession>;
        logout(providerId: string, sessionId: string): Promise<void>;
        registerAuthenticationProvider(
            id: string,
            provider: AuthenticationProvider,
        ): void;
        requestNewSession(
            id: string,
            scopeListOrRequest:
                | AuthenticationWwwAuthenticateRequest
                | readonly string[],
            extensionId: string,
            extensionName: string,
        ): void;
        signOutOfAccount(providerId: string, accountName: string): Promise<void>;
        supportsMultipleAccounts(providerId: string): boolean;
        unregisterAuthenticationProvider(id: string): void;
        updateSessions(
            providerId: string,
            event: AuthenticationProviderAuthenticationSessionsChangeEvent,
        ): void;
    }

    Implemented by

    Index

    Properties

    onDidChangeSessions: Event<
        {
            event: AuthenticationProviderAuthenticationSessionsChangeEvent;
            label: string;
            providerId: string;
        },
    >
    onDidRegisterAuthenticationProvider: Event<AuthenticationProviderInformation>
    onDidUnregisterAuthenticationProvider: Event<AuthenticationProviderInformation>
    onDidUpdateSignInCount: Event<number>

    Methods