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

loginUDG read credentials from file #4

Open
jesusff opened this issue May 27, 2022 · 1 comment
Open

loginUDG read credentials from file #4

jesusff opened this issue May 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jesusff
Copy link
Member

jesusff commented May 27, 2022

Hi,

In order to avoid showing my UDG user/password openly in notebooks/scripts I usually do:

do.call(loginUDG, as.list(readLines("udg_login.txt")))

which is quite dirty for the purpose. I think this could be easily implemented internally in loginUDG(), either as e.g.:

loginUDG(from.file = "udg_login.txt")

Or just let the function try to find a default file (e.g. ~/.udgrc) when called without arguments loginUDG()

@jesusff jesusff added the enhancement New feature or request label May 27, 2022
@cofinoa
Copy link
Member

cofinoa commented May 31, 2022

we need to create a .rc simmilar to the netcdf-c support on authentication:
https://docs.unidata.ucar.edu/netcdf-c/current/tutorial_8dox.html

more over the section on third-party auth, based also on .netrc "standard"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants