hydra
hydra copied to clipboard
Support basic auth?
I'm able to use the API as I'd like, to create jobsets, trigger their evaluation, and monitor the results. However, it seems like the only auth story for these operations is to actually pass the u/p to the /login endpoint, capture the returned cookie, and pass that cookie to successive requests.
Can there be an option to just pass the auth information on each request? It feels slow and wasteful to log in each time, but I don't want to have to juggle a maybe-timed-out session cookie in my client.
Looks unfortunately like the hydra-cli Rust client does exactly the same thing:
https://github.com/nlewo/hydra-cli/blob/4b664f83cb700e15a3d93adce92423d2e7cce328/src/hydra/reqwest_client.rs#L142-L148