adjust frontend to new backend
This commit is contained in:
21
templates/services/configuration.mustache
Normal file
21
templates/services/configuration.mustache
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { AbstractServerConfiguration } from "./http";
|
||||
import type { HttpLibrary, RequestContext } from "../http/http";
|
||||
import type { Middleware } from "../middleware";
|
||||
import type { AuthMethods, TokenProvider } from "../auth/auth";
|
||||
import type { Configuration } from "../configuration";
|
||||
|
||||
export abstract class AbstractConfiguration implements Configuration {
|
||||
abstract get baseServer(): AbstractServerConfiguration;
|
||||
abstract get httpApi(): HttpLibrary;
|
||||
abstract get middleware(): Middleware[];
|
||||
abstract get authMethods(): AuthMethods;
|
||||
}
|
||||
|
||||
export abstract class AbstractAuthMethod {
|
||||
public abstract getName(): string;
|
||||
public abstract applySecurityAuthentication(context: RequestContext): void | Promise<void>;
|
||||
};
|
||||
|
||||
export abstract class AbstractTokenProvider implements TokenProvider {
|
||||
public abstract getToken(): string | Promise<string>;
|
||||
}
|
||||
Reference in New Issue
Block a user