Libraries v5.0.0
    Preparing search index...

    Interface AuthenticationConfig

    Authentication configuration passed to ServerBuilder.useAuthentication().

    At least one scheme must be listed. The defaultScheme name must match one of the registered scheme name values — it is used when no specific scheme is requested.

    interface AuthenticationConfig {
        defaultScheme: string;
        schemes: AuthenticationScheme<any>[];
        trySchemes?: readonly string[] | "all";
    }
    Index
    defaultScheme: string

    Name of the default scheme to use (must match a scheme's name).

    schemes: AuthenticationScheme<any>[]

    Registered authentication schemes.

    trySchemes?: readonly string[] | "all"

    Optional ordered authentication fallback.

    By default, only defaultScheme is attempted. Set to 'all' to try every registered scheme in registration order, or pass scheme names to try a specific ordered subset.