Theia API Documentation v1.65.0
    Preparing search index...

    Our authentication provider should at least contain the following information:

    • The signature of authentication providers from vscode
    • Registration information about the provider (id, label)
    • Provider options (supportsMultipleAccounts)

    Additionally, we provide the possibility to sign out of a specific account name.

    interface AuthenticationProvider {
        id: string;
        label: string;
        onDidChangeSessions: Event<
            AuthenticationProviderAuthenticationSessionsChangeEvent,
        >;
        supportsMultipleAccounts: boolean;
        createSession(
            scopes: string[],
            options: AuthenticationProviderSessionOptions,
        ): Thenable<AuthenticationSession>;
        getSessions(
            scopes: undefined | string[],
            account?: AuthenticationSessionAccountInformation,
        ): Thenable<readonly AuthenticationSession[]>;
        hasSessions(): boolean;
        removeSession(sessionId: string): Thenable<void>;
        signOut(accountName: string): Promise<void>;
        updateSessionItems(
            event: AuthenticationProviderAuthenticationSessionsChangeEvent,
        ): Promise<void>;
    }

    Implemented by

    Index

    Properties

    id: string
    label: string

    An event which fires when the array of sessions has changed, or data within a session has changed.

    supportsMultipleAccounts: boolean

    Methods