diff --git a/workspaces/lightspeed/app-config.yaml b/workspaces/lightspeed/app-config.yaml
index 71bc4d2bc1..f611f73106 100644
--- a/workspaces/lightspeed/app-config.yaml
+++ b/workspaces/lightspeed/app-config.yaml
@@ -63,9 +63,19 @@ techdocs:
auth:
# see https://backstage.io/docs/auth/ to learn about auth providers
+ environment: development
providers:
# See https://backstage.io/docs/auth/guest/provider
guest: {}
+ # Uncomment if using GitHub provider
+ # See https://backstage.io/docs/auth/github/provider#configuration
+ # github:
+ # development:
+ # clientId: ${AUTH_GITHUB_CLIENT_ID}
+ # clientSecret: ${AUTH_GITHUB_CLIENT_SECRET}
+ # signIn:
+ # resolvers:
+ # - resolver: usernameMatchingUserEntityName
scaffolder: {}
# see https://backstage.io/docs/features/software-templates/configuration for software template options
diff --git a/workspaces/lightspeed/packages/app/src/App.tsx b/workspaces/lightspeed/packages/app/src/App.tsx
index b20b60a23e..3dcd3e4caa 100644
--- a/workspaces/lightspeed/packages/app/src/App.tsx
+++ b/workspaces/lightspeed/packages/app/src/App.tsx
@@ -53,7 +53,14 @@ import { RequirePermission } from '@backstage/plugin-permission-react';
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
import { lightspeedTranslations } from '@red-hat-developer-hub/backstage-plugin-lightspeed/alpha';
import { LightspeedPage } from '@red-hat-developer-hub/backstage-plugin-lightspeed';
+import { githubAuthApiRef } from '@backstage/core-plugin-api';
+const githubProvider = {
+ id: 'github-auth-provider',
+ title: 'GitHub',
+ message: 'Sign in using GitHub',
+ apiRef: githubAuthApiRef,
+};
const app = createApp({
apis,
__experimentalTranslations: {
@@ -78,7 +85,9 @@ const app = createApp({
});
},
components: {
- SignInPage: props => ,
+ SignInPage: props => (
+
+ ),
},
});
diff --git a/workspaces/lightspeed/packages/backend/src/index.ts b/workspaces/lightspeed/packages/backend/src/index.ts
index 5dde6da81a..1f6f6b3b18 100644
--- a/workspaces/lightspeed/packages/backend/src/index.ts
+++ b/workspaces/lightspeed/packages/backend/src/index.ts
@@ -62,4 +62,7 @@ backend.add(
import('@red-hat-developer-hub/backstage-plugin-lightspeed-backend'),
);
+// GitHub auth
+backend.add(import('@backstage/plugin-auth-backend-module-github-provider'));
+
backend.start();