9 lines
343 B
TypeScript
9 lines
343 B
TypeScript
import { HTTPRequestContext } from '../../../server/v2/RequestContext';
|
|
import { IUser } from '../IUser';
|
|
export interface HTTPAuthentication {
|
|
askForAuthentication(ctx: HTTPRequestContext): {
|
|
[headeName: string]: string;
|
|
};
|
|
getUser(ctx: HTTPRequestContext, callback: (error: Error, user?: IUser) => void): void;
|
|
}
|