Backstage
    Preparing search index...

    Interface OAuthAuthenticator<TContext, TProfile>

    interface OAuthAuthenticator<TContext, TProfile> {
        defaultProfileTransform: ProfileTransform<
            OAuthAuthenticatorResult<TProfile>,
        >;
        scopes?: OAuthAuthenticatorScopeOptions;
        shouldPersistScopes?: boolean;
        authenticate(
            input: OAuthAuthenticatorAuthenticateInput,
            ctx: TContext,
        ): Promise<OAuthAuthenticatorResult<TProfile>>;
        initialize(ctx: { callbackUrl: string; config: Config }): TContext;
        logout?(input: OAuthAuthenticatorLogoutInput, ctx: TContext): Promise<void>;
        refresh(
            input: OAuthAuthenticatorRefreshInput,
            ctx: TContext,
        ): Promise<OAuthAuthenticatorResult<TProfile>>;
        start(
            input: OAuthAuthenticatorStartInput,
            ctx: TContext,
        ): Promise<{ status?: number; url: string }>;
    }

    Type Parameters

    • TContext
    • TProfile
    Index

    Properties

    shouldPersistScopes?: boolean

    use scopes.persist instead

    Methods