fix(core): update

This commit is contained in:
2020-03-25 20:15:46 +00:00
parent e4ebd99c8f
commit df96f08038
5 changed files with 26 additions and 14 deletions

View File

@@ -1,16 +1,11 @@
import * as plugins from './sdk.plugins';
import { AuthInfo } from './sdk.classes.authinfo';
export abstract class AAgHandler {
public authenticationHandler: any;
export abstract class AAgHandler<TClaim> {
/**
* a slug that separates the handler from other handlers
*/
public abstract slug: string;
public abstract handleRequest (request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>;
public setAuthenticationHandler(authHandler) {
this.authenticationHandler = authHandler;
}
public abstract handleRequest (authInfoArg: AuthInfo<TClaim>, request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>;
}