Comments (2)
My backend index.ts
has the following
// App
backend.add(import('@backstage/plugin-app-backend/alpha'));
// Permissions
backend.add(import('@backstage/plugin-permission-backend/alpha'));
backend.add(customPermissionBackendModule);
// Catalog Entities and GitHub
backend.add(import('@backstage/plugin-catalog-backend/alpha'));
backend.add(import('@backstage/plugin-catalog-backend-module-github/alpha'));
backend.add(import('@backstage/plugin-catalog-backend-module-github-org'));
backend.add(
import('@backstage/plugin-catalog-backend-module-scaffolder-entity-model'),
);
backend.add(import('@backstage/plugin-catalog-backend-module-unprocessed'));
// Techdocs
backend.add(import('@backstage/plugin-techdocs-backend/alpha'));
// Auth
backend.add(import('@backstage/plugin-auth-backend'));
backend.add(import('@backstage/plugin-auth-backend-module-guest-provider'));
backend.add(import('@backstage/plugin-auth-backend-module-github-provider'));
backend.add(authCustomModuleMicrosoftProvider);
// Scaffolder
backend.add(import('@backstage/plugin-scaffolder-backend/alpha'));
backend.add(import('@backstage/plugin-scaffolder-backend-module-github'));
backend.add(scaffolderModuleCustomExtensions);
Furthermore, techdocs renders fine when logged in as guest but I had to add the following flag
guest:
- dangerouslyAllowOutsideDevelopment: true
However, in my higher envs, Guests login are disabled.
from backstage.
What's going on here is that TechDocs is using the new cookie auth and plugin service auth. When using those two are used in combination it's important that all parts of the system is using the new plugin service auth, or this might happen. When the user makes a request to the TechDocs static assets they'll use a cookie with a limited user token. This limited user token then in turn can only be converted into a valid service token to make a request to the catalog backend if both the TechDocs and Catalog plugins use the new plugin service auth. The logic for all of that is here. You're running everything in one backend though, so I don't expect that things being out of sync to be the actual issue here.
Couple of things to check: do you have any backend.discovery
configuration in app-config.yaml
? That could mess with the ability for TechDocs to reach the catalog. And in general, do you have any service mesh/proxies that might sit in-between plugins?
Second thing, how's the authCustomModuleMicrosoftProvider
implemented? Is it a plain sign-in resolver configuration or something more elaborate?
from backstage.
Related Issues (20)
- 🐛 Bug Report: Search broken in v1.27.0 ? HOT 4
- 🐛 Bug Report: esbuild target doesn't match the tsconfig value and maybe other values HOT 1
- 🐛 Bug Report: Support of an external config schema in the `app-backend` router is broken HOT 1
- 🐛 Bug Report: backend search API failures after 1.27.0 upgrade HOT 8
- Deprecate and remove all legacy common functionality that has already been replaced in the new system HOT 3
- 🐛 Bug Report: Scaffolder template - If statement in output spec no applied HOT 1
- 🐛 Bug Report: Experiencing "Error: Cannot find module 'packages/backend/dist/index.cjs.js " HOT 4
- 🚀 Feature: enable environment variables or appConfig.yaml properties to be referred to from template.yaml files. HOT 1
- 💬 RFC: Make the usage of OAuth Access Token more stable/predictable HOT 2
- 💬 RFC: Allow to do auto-refresh of OAuth tokens if user gives explicit consent for that HOT 1
- 🚀 Feature: Home Page Recently Visited component for entities with subpages
- 🚀 Feature: Gitlab CI/CD pipelines
- 🐛 Bug Report: scaffolder 'fetch' action not working for AWS CodeCommit HOT 3
- 🐛 Bug Report: 1.27 GitLab discovery regression when using fallbackBranch other than master HOT 3
- REST API documentation consistency improvements HOT 2
- 🚀 Feature: Possible to use variable (prefill) in default value each property in template.yaml HOT 1
- 🚀 Feature: Use upsert to index documents to elasticsearch HOT 2
- 🐛 Bug Report: Search - Bad Request HOT 3
- 🚀 Feature: Scaffolder Plugin Exception Handling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backstage.