Hi Benoit,
You might be interested in the OAuth2 credmon component for HTCondor. This helps manage the token and push it to the remote side.
There are two implementations shipped:
- The vault credmon. This is maintained by Dave Dykstra. The Vault server helps avoid needing to do OAuth2 workflows out to the end-client (which can be awkward).
- The OAuth2 credmon. This includes a small webserver that does the web-based OAuth2 flow.
If you want to continue using oidc-agent, perhaps it would be useful to contribute an oidc-agent credmon? It's python code, a fairly approachable part of the codebase, and I imagine it would benefit many others.
Once HTCondor manages the token, the user can even utilize the built-in HTTP file transfer plugin and simply put the URL in transfer_output_files / transfer_output_remaps.
Hope this helps,
Brian
|