@tdc/feathers-authentication-api-key
Version:
API Key authentication strategy for @feathers/authentication
25 lines (24 loc) • 925 B
TypeScript
/// <reference types="node" />
import { Params } from "@feathersjs/feathers";
import { IncomingMessage, ServerResponse } from "http";
import { AuthenticationBaseStrategy, AuthenticationResult } from "@feathersjs/authentication";
export declare class ApiKeyStrategy extends AuthenticationBaseStrategy {
private serviceBased;
constructor();
verifyConfiguration(): void;
readonly configuration: any;
findEntity(apiKey: string, params: Params): Promise<any>;
authenticate(authRequest: AuthenticationResult, params: Params): Promise<{
[x: number]: {};
authentication: {
[x: number]: any;
strategy: string | undefined;
};
headers: {};
apiKey: boolean;
}>;
parse(req: IncomingMessage, res: ServerResponse): Promise<{
[x: number]: string | string[];
strategy: string | undefined;
} | null>;
}