@authx/http-proxy-resource
Version:
The AuthX proxy for resources is a flexible HTTP proxy designed to sit in front of a resource.
11 lines (10 loc) • 458 B
TypeScript
import { TokenDataCache } from "./TokenDataCache.js";
export declare class NotAuthorizedError extends Error {
readonly cause?: any;
constructor(message: string, cause?: any);
}
export declare function validateAuthorizationHeader(authxUrl: string, keys: ReadonlyArray<string>, authorizationHeader: string, tokenDataCache: TokenDataCache): Promise<{
authorizationId: string;
authorizationSubject: string;
authorizationScopes: string[];
}>;