tech-insights-backend: added auth service support

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Carl-Erik Bergström <cbergstrom@spotify.com>
Co-authored-by: blam <ben@blam.sh>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-02-14 01:29:36 +01:00
parent 58b5e450dd
commit d621468d93
14 changed files with 57 additions and 19 deletions
+2
View File
@@ -22,6 +22,7 @@ import {
} from '@backstage/backend-common';
import { FactSchema } from '@backstage/plugin-tech-insights-common';
import { Logger } from 'winston';
import { AuthService } from '@backstage/backend-plugin-api';
/**
* A container for facts. The shape of the fact records needs to correspond to the FactSchema with same `ref` value.
@@ -92,6 +93,7 @@ export type FactRetrieverContext = {
discovery: PluginEndpointDiscovery;
logger: Logger;
tokenManager: TokenManager;
auth: AuthService;
entityFilter?:
| Record<string, string | symbol | (string | symbol)[]>[]
| Record<string, string | symbol | (string | symbol)[]>;