Skip to content

Conversation

@olifre
Copy link

@olifre olifre commented Apr 23, 2024

This uses the same lookup logic implemented in XRootD and ROOT (for davix and xroot protocols), i.e.:

  • if BEARER_TOKEN is set, prefer this
  • else, if BEARER_TOKEN_FILE is set, read token from there
  • else, check ${XDG_RUNTIME_DIR}/bt_u
  • else, check /tmp/bt_u

This uses the same lookup logic implemented in XRootD and ROOT
(for davix and xroot protocols), i.e.:
- if BEARER_TOKEN is set, prefer this
- else, if BEARER_TOKEN_FILE is set, read token from there
- else, check ${XDG_RUNTIME_DIR}/bt_u<uid>
- else, check /tmp/bt_u<uid>
@olifre
Copy link
Author

olifre commented Apr 23, 2024

I realized only after developing and opening this PR that #13 does quite the same, but slightly differently. I'm still leaving this one open in case you prefer some parts from this implementation (I tried to use more GLib functionality= and others from the one made by @bbockelm .

@mpatrascoiu mpatrascoiu force-pushed the develop branch 4 times, most recently from 4a8f77e to 8116426 Compare August 19, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant