@creator.co/module-identity-client - v1.1.11
    Preparing search index...

    Interface ExternalProviderDatasource

    Interface representing an external provider datasource. ExternalProviderDatasource

    handleAuthenticationResponse - Handles the authentication response from the external provider.

    The response object from the authentication.

    The username for the authentication.

    interface ExternalProviderDatasource {
        api: Api<any>;
        options: IDMOptions;
        session: default;
        sessionExternalProviderLoadedHandler?: () => void;
        handleAuthenticationResponse(
            resp: AuthorizationResponse | ErrorResponse,
            username?: string,
            isRenewal?: boolean,
            isLocalAuthentication?: boolean,
        ): Promise<any>;
    }

    Implemented by

    Index

    Properties

    api: Api<any>

    The API object for the external provider.

    options: IDMOptions

    The IDM options for the external provider.

    session: default

    The session object for the external provider.

    sessionExternalProviderLoadedHandler?: () => void

    Optional handler function for when the session is loaded.

    Methods

    • Handles the authentication response from the server.

      Parameters

      • resp: AuthorizationResponse | ErrorResponse

        The response object from the server.

      • Optionalusername: string

        The username for the authentication.

      • OptionalisRenewal: boolean

        Flag indicating if the authentication is a renewal.

      • OptionalisLocalAuthentication: boolean

        Flag indicating if the authentication is local.

      Returns Promise<any>

      A Promise that resolves with the authentication response.