Skip to content

Bearer token variable#17

Merged
natalieda merged 3 commits intomasterfrom
bearer-token-variable
Aug 30, 2024
Merged

Bearer token variable#17
natalieda merged 3 commits intomasterfrom
bearer-token-variable

Conversation

@hailihu
Copy link
Contributor

@hailihu hailihu commented Aug 15, 2024

In case no authentication method is specified in commandline (--tokenfile, --netrc, --proxy), the environmentable variable BEARER_TOKEN is used if it exists.

To test:
export BEARER_TOKEN=...
ada --whoami --api https://dcachetest.grid.surfsara.nl:20443/api/v1

@hailihu hailihu linked an issue Aug 15, 2024 that may be closed by this pull request
@natalieda
Copy link
Collaborator

I tested the possible authentication options (BEARER_TOKEN, --tokenfile, --netrc, --proxy, none) and all tests have passed.

@natalieda
Copy link
Collaborator

Thanks Haili!

@natalieda natalieda merged commit fbe512a into master Aug 30, 2024
@hailihu hailihu deleted the bearer-token-variable branch September 11, 2024 07:11
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.

Ada: Use BEARER_TOKEN variable if it is set

3 participants