docs/tutorials/enable-public-entry: remove AuthProxyDiscoveryApi from example

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-04-09 13:36:00 +02:00
parent d11767c861
commit e2e0c998e6
+2 -9
View File
@@ -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 (