-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
None
-
3
-
False
-
-
False
-
-
-
RHDH Core Team 3257, RHDH Core Team 3258, RHDH F&UI plugins 3259, RHDH F&UI plugins 3260
Description of the problem:
The GitHub Sign In card is always shown regardless of the auth configuration in backstage, giving the impression to the user that it is possible to login to GitHub as an alternative method. However, when clicking the link, a popup is opened with a JSON error:
{"error":{"name":"NotFoundError","message":"No auth provider registered for 'github'"},"request":{"method":"GET","url":"/api/auth/github/start?scope=read%3Auser&origin=https%3A%2F%2Fbackstage-backstage-rhdh-operator.apps.stress.parodos.dev&flow=popup&env=development"},"response":{"statusCode":404}}
**
How reproducible:
All the time.
Steps to reproduce:
- Configure RHDH without providing GITHUB_TOKEN and GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET values in the secret.
- Restart the backstage pod and wait for it to reach Ready status.
- Open a browser and load the landing page.
- Click on the Sign in using GitHub button.
Actual results:
Shows a popup window with a json that has a 404 HTTP status
Expected results:
Either the landing page should not show the GitHub card for signing in or it should open a popup window with a GitHub authentication page (login/password) that, once populated and validated by GitHub, should close and authenticate the user in Backstage.
