From b76b5ef9873cad5c2dfefdbcd3beeafc7a3f57be Mon Sep 17 00:00:00 2001 From: Marco Crivellaro Date: Thu, 8 Apr 2021 22:55:44 +0100 Subject: [PATCH] remove details of createApp call Signed-off-by: Marco Crivellaro --- contrib/docs/tutorials/aws-alb-aad-oidc-auth.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/contrib/docs/tutorials/aws-alb-aad-oidc-auth.md b/contrib/docs/tutorials/aws-alb-aad-oidc-auth.md index 4d90079046..2503c31756 100644 --- a/contrib/docs/tutorials/aws-alb-aad-oidc-auth.md +++ b/contrib/docs/tutorials/aws-alb-aad-oidc-auth.md @@ -68,7 +68,6 @@ const DummySignInComponent: any = (props: any) => { }); }); } else { - // when running locally we default user identity to `Local User` props.onResult({ userId: 'guest', profile: { @@ -83,23 +82,16 @@ const DummySignInComponent: any = (props: any) => { }; ``` -- use `DummySignInComponent` as `SignInPage` by changing the `createApp` call: +- add `DummySignInComponent` as `SignInPage`: ```ts const app = createApp({ - apis, - plugins: Object.values(plugins), + ... components: { SignInPage: DummySignInComponent, + ... }, - bindRoutes({ bind }) { - bind(catalogPlugin.externalRoutes, { - createComponent: scaffolderPlugin.routes.root, - }); - bind(apiDocsPlugin.externalRoutes, { - createComponent: scaffolderPlugin.routes.root, - }); - }, + ... }); ```