src/gen/auth/auth

SecurityAuthentication

Interface authentication schemes.
interface SecurityAuthentication {
    /*     * @return returns the name of the security authentication as specified in OAI     */    getName(): string;    /**     * Applies the authentication scheme to the request context     *     * @params context the request context which should use this authentication scheme     */    applySecurityAuthentication(context: RequestContext): void | Promise<void>;}

BearerTokenAuthentication

Applies apiKey authentication to the request context.
class BearerTokenAuthentication implements SecurityAuthentication 

constructor

Configures this api key authentication with the necessary properties

Parameters

apiKey: The api key to be used for every request

public constructor(apiKey: string) 

configureAuthMethods

Creates the authentication methods from a swagger description.
function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods 
Start typing to search the documentation Press ESC to close