Skip to content

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

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

Closed
ryan-williams opened this issue Feb 16, 2017 · 1 comment
Closed

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

ryan-williams opened this issue Feb 16, 2017 · 1 comment

Comments

@ryan-williams
Copy link

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').

@etpinard
Copy link
Contributor

I believe you're looking for this repo https://github.com/plotly/plotly-nodejs

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

No branches or pull requests

2 participants