Merge pull request #23994 from sagardesai1/bug/entity-badges
Fix: allow unauthenticated requests for entity badges
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-badges-backend': minor
|
||||
---
|
||||
|
||||
Fix unauthorized requests by allowing unauthenticated requests.
|
||||
@@ -63,6 +63,14 @@ export const badgesPlugin = createBackendPlugin({
|
||||
auth,
|
||||
}),
|
||||
);
|
||||
httpRouter.addAuthPolicy({
|
||||
path: '/entity/:entityUuid/:badgeId',
|
||||
allow: 'unauthenticated',
|
||||
});
|
||||
httpRouter.addAuthPolicy({
|
||||
path: '/entity/:namespace/:kind/:name/badge/:badgeId',
|
||||
allow: 'unauthenticated',
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user