Merge pull request #8598 from erikxiv/fix-api-auth-in-techdocs

fixes api auth bug in techdocs backend
This commit is contained in:
Eric Peterson
2021-12-28 17:33:36 +01:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs-backend': patch
---
Add support for API auth in DefaultTechDocsCollator
@@ -123,6 +123,11 @@ export class DefaultTechDocsCollator implements DocumentCollator {
techDocsBaseUrl,
entityInfo,
),
{
headers: {
Authorization: `Bearer ${token}`,
},
},
);
const searchIndex = await searchIndexResponse.json();