Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Allow node client to read ~/.plotly/.credentials #48

Open
ryan-williams opened this issue Feb 17, 2017 · 0 comments
Open

Allow node client to read ~/.plotly/.credentials #48

ryan-williams opened this issue Feb 17, 2017 · 0 comments

Comments

@ryan-williams
Copy link

Re-filing plotly/plotly.js#1386 here.

It seems that the only way to auth with the node client is to put your username and api-key (effectively password) into your source (docs).

It would be better if there were an option to have it read credentials from ~/.plotly/.credentials, like the python client does.

I'm trying to ship a script that users can run to generate a plot with data of their choosing; putting my own credentials into that script / my SCM is not desirable or sensible.

Perhaps I've missed a way to do this currently? As it is, I'm going to parse ~/.plotly/.credentials myself in JS, and pass the u/p to require('plotly').

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant