Libraries
    Preparing search index...

    Interface OidcSchemeOptions<T>

    Configuration for oidcScheme.

    interface OidcSchemeOptions<T> {
        authenticate: (
            context: AuthenticationContext,
        ) => Promise<AuthenticationResult<T>>;
        name?: string;
        openIdConnectUrl: string;
    }

    Type Parameters

    • T

      The type of the principal value produced by authenticate.

    Index

    Properties

    authenticate: (
        context: AuthenticationContext,
    ) => Promise<AuthenticationResult<T>>

    Validate the incoming request and return the principal or a failure.

    name?: string

    Custom scheme name (default: 'oidc').

    openIdConnectUrl: string

    OpenID Connect discovery URL (e.g. https://auth.example.com/.well-known/openid-configuration).