lighthouse-backend: migrate to support new auth services
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:
@@ -19,7 +19,7 @@ import { PluginEnvironment } from '../types';
|
||||
import { CatalogClient } from '@backstage/catalog-client';
|
||||
|
||||
export default async function createPlugin(env: PluginEnvironment) {
|
||||
const { logger, scheduler, config, tokenManager } = env;
|
||||
const { logger, scheduler, config, tokenManager, discovery } = env;
|
||||
|
||||
const catalogClient = new CatalogClient({
|
||||
discoveryApi: env.discovery,
|
||||
@@ -31,5 +31,6 @@ export default async function createPlugin(env: PluginEnvironment) {
|
||||
config,
|
||||
catalogClient,
|
||||
tokenManager,
|
||||
discovery,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user