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

    A provider for performing authentication to a service.

    interface AuthenticationProvider {
        onDidChangeSessions: Event<
            AuthenticationProviderAuthenticationSessionsChangeEvent,
        >;
        createSession(
            scopes: readonly string[],
            options: AuthenticationProviderSessionOptions,
        ): Thenable<AuthenticationSession>;
        getSessions(
            scopes: undefined | readonly string[],
            options: AuthenticationProviderSessionOptions,
        ): Thenable<AuthenticationSession[]>;
        removeSession(sessionId: string): Thenable<void>;
    }
    Index

    Properties

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

    Methods

    • Removes the session corresponding to session id.

      If the removal is successful, the onDidChangeSessions event should be fired.

      If a session cannot be removed, the provider should reject with an error message.

      Parameters

      • sessionId: string

        The id of the session to remove.

      Returns Thenable<void>