| 7 | * Interface authentication schemes. |
| 8 | */ |
| 9 | export interface SecurityAuthentication { |
| 10 | /* |
| 11 | * @return returns the name of the security authentication as specified in OAI |
| 12 | */ |
| 13 | getName(): string; |
| 14 | |
| 15 | /** |
| 16 | * Applies the authentication scheme to the request context |
| 17 | * |
| 18 | * @params context the request context which should use this authentication scheme |
| 19 | */ |
| 20 | applySecurityAuthentication(context: RequestContext): void | Promise<void>; |
| 21 | } |
| 22 | |
| 23 | export interface TokenProvider { |
| 24 | getToken(): Promise<string> | string; |
no outgoing calls
no test coverage detected