From 01501fbb9839f8e059077a3e6d3e7c7b00287b06 Mon Sep 17 00:00:00 2001 From: Rajesh Goyal Date: Sat, 19 Apr 2025 20:42:17 +0530 Subject: [PATCH 1/2] Update authentication.md There is already a SignInPage component exists. To add GitHub as a provider, existing SignInPage component need to modify instead of creating a new SignInPage for GitHub provider. Signed-off-by: Rajesh Goyal --- docs/getting-started/config/authentication.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/config/authentication.md b/docs/getting-started/config/authentication.md index 2442d2b767..25f3fe05cd 100644 --- a/docs/getting-started/config/authentication.md +++ b/docs/getting-started/config/authentication.md @@ -56,7 +56,15 @@ Open `packages/app/src/App.tsx` and below the last `import` line, add: import { githubAuthApiRef } from '@backstage/core-plugin-api'; ``` -Search for `const app = createApp({` in this file, and below `apis,` add: +Search for `const app = createApp({` in this file, and replace: + +```tsx title="packages/app/src/App.tsx" +components: { + SignInPage: props => , + }, +``` + +with ```tsx title="packages/app/src/App.tsx" components: { From 79d2006430b3ce2613c716dafda9913fca1d2813 Mon Sep 17 00:00:00 2001 From: Rajesh Goyal Date: Sun, 20 Apr 2025 21:29:23 +0530 Subject: [PATCH 2/2] Update authentication.md - code need to be aligned a bit Signed-off-by: Rajesh Goyal --- docs/getting-started/config/authentication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/config/authentication.md b/docs/getting-started/config/authentication.md index 25f3fe05cd..cb0a329ae1 100644 --- a/docs/getting-started/config/authentication.md +++ b/docs/getting-started/config/authentication.md @@ -60,8 +60,8 @@ Search for `const app = createApp({` in this file, and replace: ```tsx title="packages/app/src/App.tsx" components: { - SignInPage: props => , - }, + SignInPage: props => , +}, ``` with