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 <rajeshgoyalg@gmail.com>
This commit is contained in:
@@ -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 => <SignInPage {...props} auto providers={['guest']} />,
|
||||
},
|
||||
```
|
||||
|
||||
with
|
||||
|
||||
```tsx title="packages/app/src/App.tsx"
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user