Theia API Documentation v1.65.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,
            scopes?: string[],
            user?: AuthenticationSessionAccountInformation,
        ): Promise<readonly AuthenticationSession[]>;
        isAuthenticationProviderRegistered(id: string): boolean;
        login(
            providerId: string,
            scopes: string[],
            options?: AuthenticationProviderSessionOptions,
        ): Promise<AuthenticationSession>;
        logout(providerId: string, sessionId: string): Promise<void>;
        registerAuthenticationProvider(
            id: string,
            provider: AuthenticationProvider,
        ): void;
        requestNewSession(
            id: string,
            scopes: 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

    • Parameters

      • id: string
      • scopes: string[]
      • extensionId: string
      • extensionName: string

      Returns void