search-backend-module-explore: correctly wire up auth service in new backend

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-04-22 16:39:30 +02:00
parent 1d02904ffd
commit d5fff665d8
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -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.
@@ -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,