Skip to content

gfal_common: add feature to read tokens from files#21

Open
olifre wants to merge 1 commit intocern-fts:developfrom
olifre:bearer_token_file
Open

gfal_common: add feature to read tokens from files#21
olifre wants to merge 1 commit intocern-fts:developfrom
olifre:bearer_token_file

Conversation

@olifre
Copy link
Copy Markdown

@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
Copy Markdown
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