Merge pull request #24447 from backstage/rugvip/module-auth-fix

search-backend-module-catalog: correctly wire up auth service in new backend
This commit is contained in:
Patrik Oldsberg
2024-04-23 01:27:56 +02:00
committed by GitHub
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,