From d5fff665d89759cad8baaaa131bbf310efb28edf Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 22 Apr 2024 16:39:30 +0200 Subject: [PATCH] search-backend-module-explore: correctly wire up auth service in new backend Signed-off-by: Patrik Oldsberg --- .changeset/orange-numbers-think.md | 5 +++++ plugins/search-backend-module-catalog/src/alpha.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/orange-numbers-think.md diff --git a/.changeset/orange-numbers-think.md b/.changeset/orange-numbers-think.md new file mode 100644 index 0000000000..21dc7ce76b --- /dev/null +++ b/.changeset/orange-numbers-think.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-search-backend-module-catalog': patch +--- + +Fix wiring of the module exported at the `/alpha` path, which was causing authentication failures. diff --git a/plugins/search-backend-module-catalog/src/alpha.ts b/plugins/search-backend-module-catalog/src/alpha.ts index 71dabeb011..2ae9cd8af9 100644 --- a/plugins/search-backend-module-catalog/src/alpha.ts +++ b/plugins/search-backend-module-catalog/src/alpha.ts @@ -77,6 +77,7 @@ export default createBackendModule({ env.registerInit({ deps: { + auth: coreServices.auth, config: coreServices.rootConfig, discovery: coreServices.discovery, tokenManager: coreServices.tokenManager, @@ -85,6 +86,7 @@ export default createBackendModule({ catalog: catalogServiceRef, }, async init({ + auth, config, discovery, tokenManager, @@ -97,6 +99,7 @@ export default createBackendModule({ readScheduleConfigOptions(config), ), factory: DefaultCatalogCollatorFactory.fromConfig(config, { + auth, entityTransformer, discovery, tokenManager,