hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Support basic auth?

Open mikepurvis opened this issue 4 years ago • 0 comments

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

mikepurvis avatar Nov 16 '21 16:11 mikepurvis