Fix: allow unauthenticated requests for entity badges

Signed-off-by: sagardesai1 <mr.sagar576@gmail.com>
This commit is contained in:
sagardesai1
2024-04-04 14:53:56 -04:00
parent 7882ea60d3
commit 88d4769df5
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-badges-backend': minor
---
Fix unauthorized requests by allowing unauthenticated requests
+4
View File
@@ -63,6 +63,10 @@ export const badgesPlugin = createBackendPlugin({
auth,
}),
);
httpRouter.addAuthPolicy({
path: '/',
allow: 'unauthenticated',
});
},
});
},