GitHub login not working, no auth provider registered
See original GitHub issueWe have 2 auth provider configured Guest and Github.
We are getting the below exception with Github auth provider
{“error”:{“name”:“NotFoundError”,“message”:“Auth provider registered for ‘github’ is misconfigured. This could mean the configs under auth.providers.github are missing or the environment variables used are not defined. Check the auth backend plugin logs when the backend starts to see more details.”,“stack”:"NotFoundError: Auth provider registered for ‘github’ is misconfigured. This could mean the configs under auth.providers.github are missing or the environment variables used are not defined. Check the auth backend plugin logs when the backend starts to see more details.\n at
Github should open the redirect url for authentication
Updated App-config.yaml file
Section Integration and Auth as below
auth: providers: github: development: clientId: $env: AUTH_GITHUB_CLIENT_ID clientSecret: $env: AUTH_GITHUB_CLIENT_SECRET production: clientId: $env: AUTH_GITHUB_CLIENT_ID clientSecret: $env: AUTH_GITHUB_CLIENT_SECRET
integrations: github: - host: github.com apps: - $include: github-app-credentials.yaml
- Start backstage
- Got to login screen, click on Github auth
- Exception screen pop up pointing to localhost:7000/api/auth/github URL
Context
We are not able to standup and import custom templates to our environment.
Note the same exception is observed during importing templates.
Your Environment
-
Browser Information:
-
Output of
yarn backstage-cli info:
Issue Analytics
- State:
- Created a year ago
- Comments:18 (9 by maintainers)
Top Related StackOverflow Question
I have figured it out, I insert auth inside backend: in app-config.yaml
Yes, above file
app-config.yamland I didn’t changepackages/backend/src/plugins/auth.ts