uselagoon / lagoon-ui

Apache License 2.0
6 stars 2 forks source link

feat: support setting the idp hint as an envvar #199

Closed shreddedbacon closed 4 months ago

shreddedbacon commented 7 months ago

This lets you set an IDP hint for the UI to use so that it can pass directly to a specific IDP instead of the default keycloak login.

This could be used to deploy a UI for a specific IDP

shreddedbacon commented 7 months ago

Without this environment variable, you can visit a UI and add idpHint=idpname to the URL, and it works the same way. This works now, without the change this PR makes.

https://dashboard.example.com/?idpHint=idpname

The main reason for this PR would be to be able to have specific UIs that always use the known IDP.

shreddedbacon commented 7 months ago

One issue with this is that Lagoon has no concept of separate UI capabilty currently. So things like the URL provided for logs etc that end up in notifications will use the URL defined in core