Skip to content

Commit a6e6de7

Browse files
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 <[email protected]> * Updated the CODEOWNERS for Mend Plugin Signed-off-by: hetsaliya-crestdata <[email protected]> --------- Signed-off-by: hetsaliya-crestdata <[email protected]>
1 parent 2848405 commit a6e6de7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ yarn.lock @backsta
7070
/workspaces/linkerd @backstage/community-plugins-maintainers
7171
/workspaces/manage @backstage/community-plugins-maintainers @grantila
7272
/workspaces/matomo @backstage/community-plugins-maintainers @yashoswalyo @deshmukhmayur @riginoommen
73-
/workspaces/mend @backstage/community-plugins-maintainers @dariuszsobkowicz
73+
/workspaces/mend @backstage/community-plugins-maintainers @NormanWenzelWSS @rupalvihol @hetsaliya-crestdata
7474
/workspaces/microsoft-calendar @backstage/community-plugins-maintainers
7575
/workspaces/mta @backstage/community-plugins-maintainers @ibolton336
7676
/workspaces/multi-source-security-viewer @backstage/community-plugins-maintainers @caugello @cryptorodeo
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@backstage-community/plugin-mend-backend': patch
3+
---
4+
5+
Updated the targetPluginId from 'plugin.catalog.service' to 'catalog' to get the correct token

workspaces/mend/plugins/mend-backend/src/service/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export async function createRouter(
9696
const credentials = await httpAuth.credentials(request);
9797
const { token } = await auth.getPluginRequestToken({
9898
onBehalfOf: credentials,
99-
targetPluginId: 'plugin.catalog.service',
99+
targetPluginId: 'catalog',
100100
});
101101

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

162162
// entity to project match

0 commit comments

Comments
 (0)