Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gfal_common: add feature to read tokens from files #21

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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 .

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.

None yet

1 participant