thefrontside / playhouse

Frontside's Backstage Portal
https://backstage.frontside.services/
25 stars 13 forks source link

Pass Backstage auth token to catalog.getEntitiesByRefs #378

Closed wKich closed 9 months ago

wKich commented 9 months ago

Motivation

@kunickiaj has issue with Catalog GraphQL Plugin while using Backstage Catalog with authz enabled. Because Catalog data loader requests entities from catalog without token, which leads to 401 HTTP Error and GraphQL query fails

Approach

Yoga GraphQL Server, which we are using passes HTTP Request to GraphQL Context. It allows us to grab auth token from request headers, that is put there by Backstage https://github.com/backstage/backstage/blob/master/contrib/docs/tutorials/authenticate-api-requests.md

changeset-bot[bot] commented 9 months ago

🦋 Changeset detected

Latest commit: 2124df020438cd7f03808e6dc2c0355e744e33cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------------------------------------------- | ----- | | @frontside/backstage-plugin-graphql-backend-module-catalog | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

frontsidejack commented 9 months ago

📣 NOTIFICATION You are receiving this message because we did not publish any packages.

Generated by @thefrontside/actions Frontside