Open volodymyrss opened 3 years ago
what do you think, @burnout87? It is possible though there is no time this week.
Note that I made this integral-project label to indicate issues which are not necessarily urgent for ODA, but especially directly useful for INTEGRAL project.
It is definitely interesting and useful.
To consider, that we will have to instruct the users to save their token in the various location (env_var, $HOME
directory etc).
But besides that, it is not difficult to implement.
It is definitely interesting and useful.
To consider, that we will have to instruct the users to save their token in the various location (env_var,
$HOME
directory etc).
This kind of stuff goes in user guide. It's also part of this repository.
It should not change the default behavior.
But besides that, it is not difficult to implement.
ok!
it's common to run some workflows using oda_api in semi-automated or automated way.
in such cases, token should be provide from somewhere else but the code itself. one could make workflows discover token, but standard token discovery could be directly in oda_api
in the following order:
get_product
ODA_TOKEN
variable$PWD/.oda-token
$HOME/.oda-token
in addition, the token could be inspected and used informated, as so:
Note that there are two tokens. oauth token could be disregarded for now, maybe leaving a comment/todo.