fix(dashboard-auth): exclude non-interactive providers from interactive login surfaces (#53239)

* Return None instead of erroring on drain login failure

* Fix login on drain

* Remove login for drained endpoints flow and clean the code

* chore: drop unrelated credits changes from this PR

* Remove extra comments that were not really necessary
This commit is contained in:
Nacho Avecilla 2026-06-26 21:08:13 -03:00 committed by GitHub
parent 7a38d64a85
commit dbe734beff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 89 additions and 6 deletions

View file

@ -143,6 +143,7 @@ class DrainSecretProvider(DashboardAuthProvider):
name = "drain-secret"
display_name = "Drain Control (service credential)"
supports_token = True
supports_session = False
def __init__(self, *, secret: str, scope: str = "drain") -> None:
# Defence in depth: construction also enforces the entropy bar, so a