mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-07 13:02:07 +00:00
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:
parent
7a38d64a85
commit
dbe734beff
10 changed files with 89 additions and 6 deletions
|
|
@ -78,6 +78,11 @@ class TestProvider:
|
|||
p = drain.DrainSecretProvider(secret=_strong_secret())
|
||||
assert p.supports_token is True
|
||||
|
||||
def test_is_non_interactive(self, drain):
|
||||
# Excluded from interactive surfaces via list_session_providers().
|
||||
p = drain.DrainSecretProvider(secret=_strong_secret())
|
||||
assert p.supports_session is False
|
||||
|
||||
def test_verify_token_accepts_matching_secret(self, drain):
|
||||
s = _strong_secret()
|
||||
p = drain.DrainSecretProvider(secret=s, scope="drain")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue