From e2e0c998e6cc40ab88be2ed5d8bd9c738a76ca78 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 9 Apr 2024 13:36:00 +0200 Subject: [PATCH] docs/tutorials/enable-public-entry: remove AuthProxyDiscoveryApi from example Signed-off-by: Patrik Oldsberg --- docs/tutorials/enable-public-entry.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/tutorials/enable-public-entry.md b/docs/tutorials/enable-public-entry.md index 499ab7da02..6282f66418 100644 --- a/docs/tutorials/enable-public-entry.md +++ b/docs/tutorials/enable-public-entry.md @@ -47,18 +47,11 @@ With that, Backstage's cli and backend will detect public entry point and serve createApiFactory, } from '@backstage/core-plugin-api'; import { CookieAuthRedirect } from '@backstage/plugin-auth-react'; - import { AuthProxyDiscoveryApi } from '../src/AuthProxyDiscoveryApi'; // Notice that this is only setting up what is needed by the sign-in pages const app = createApp({ - apis: [ - createApiFactory({ - api: discoveryApiRef, - deps: { configApi: configApiRef }, - factory: ({ configApi }) => - AuthProxyDiscoveryApi.fromConfig(configApi), - }), - ], + // If you have any custom APIs that your sign-in page depends on, you need to add them here + apis: [], components: { SignInPage: props => { return (