You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐛 Bug Report: plugins/user-settings with default auth provider settings shouldn't render providers that are irrelevant to the current environment
#27531
Open
2 tasks done
cecobask opened this issue
Nov 6, 2024
· 6 comments
cecobask
changed the title
🐛 Bug Report: plugin user-settings shouldn't display auth providers that aren't enabled in the current environment
🐛 Bug Report: plugins/user-settings with default auth provider settings shouldn't render providers that are irrelevant to the current environment
Nov 6, 2024
Hey @cecobask, thanks for the report!
I think the best thing to do is to make the user-settings plugin ask the auth-backend which providers are actually installed instead of trying to parse the configuration file as those can differ especially in split deployment scenarios.
Thanks! I'm a newbie here and was having trouble figuring out how to request this information from the auth-backend.
Could you provide an example of a plugin that communicates with the auth-backend and I will take it from there?
Sorry @cecobask, we took a closer look, and at the moment it seems this would be tricky to achieve because the auth-backend knows the providers, but it doesn't know which environments each provider supports.
From my investigation, accessing the configuration from the frontend app is not helpful either.
It only has visibility of the auth providers list, but not its nested properties, which is where the auth envs are stored.
I will be happy to help, just need a little bit of guidance on understanding how it can be fixed.
📜 Description
The plugin
user-settings
with default auth provider settings shouldn't render providers that are irrelevant to the current environment.Config file:
Environment variables:
👍 Expected behavior
Configured providers:
👎 Actual Behavior with Screenshots
Configured providers:
👟 Reproduction steps
Steps to reproduce are described above - use the provided configuration to run backstage.
📃 Provide the context for the Bug.
Affected plugin: https://github.com/backstage/backstage/tree/master/plugins/user-settings
🖥️ Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: