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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user