Fixed Dashboard Data Issue: Updated the targetPluginId from 'plugin.catalog.service' to 'catalog' to get the correct token (#4846)

* Fixed Dashboard Data Issue: Updated the targetPluginId from 'plugin.catalog.service' to 'catalog' to get the correct token (#16)

Signed-off-by: hetsaliya-crestdata <het.saliya@crestdata.ai>

* Updated the CODEOWNERS for Mend Plugin

Signed-off-by: hetsaliya-crestdata <het.saliya@crestdata.ai>

---------

Signed-off-by: hetsaliya-crestdata <het.saliya@crestdata.ai>
This commit is contained in:
hetsaliya-crestdata 2025-08-09 22:25:00 +05:30 committed by GitHub
parent 28484050f7
commit a6e6de78b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

2
.github/CODEOWNERS vendored
View File

@ -70,7 +70,7 @@ yarn.lock @backsta
/workspaces/linkerd @backstage/community-plugins-maintainers
/workspaces/manage @backstage/community-plugins-maintainers @grantila
/workspaces/matomo @backstage/community-plugins-maintainers @yashoswalyo @deshmukhmayur @riginoommen
/workspaces/mend @backstage/community-plugins-maintainers @dariuszsobkowicz
/workspaces/mend @backstage/community-plugins-maintainers @NormanWenzelWSS @rupalvihol @hetsaliya-crestdata
/workspaces/microsoft-calendar @backstage/community-plugins-maintainers
/workspaces/mta @backstage/community-plugins-maintainers @ibolton336
/workspaces/multi-source-security-viewer @backstage/community-plugins-maintainers @caugello @cryptorodeo

View File

@ -0,0 +1,5 @@
---
'@backstage-community/plugin-mend-backend': patch
---
Updated the targetPluginId from 'plugin.catalog.service' to 'catalog' to get the correct token

View File

@ -96,7 +96,7 @@ export async function createRouter(
const credentials = await httpAuth.credentials(request);
const { token } = await auth.getPluginRequestToken({
onBehalfOf: credentials,
targetPluginId: 'plugin.catalog.service',
targetPluginId: 'catalog',
});
// entity to project match
@ -156,7 +156,7 @@ export async function createRouter(
const credentials = await httpAuth.credentials(request);
const { token } = await auth.getPluginRequestToken({
onBehalfOf: credentials,
targetPluginId: 'plugin.catalog.service',
targetPluginId: 'catalog',
});
// entity to project match