Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Plotly proxy auth #239

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

Merged
merged 11 commits into from
Jul 1, 2015
Merged

Plotly proxy auth #239

merged 11 commits into from
Jul 1, 2015

Conversation

BRONSOLO
Copy link
Member

@chriddyp @theengineear. This allows enterprise users working behind a proxy to specify Plotly-Authorization header as a basic auth header for our API v2. This frees up the Authorization header for the initial proxy layer. For now, it is up to the server admin to handle converting the Plotly-Authorization header to the expected Authorization header for basic auth once authorized over the proxy. In the future, we could simply accept both Plotly-Authorization and Authorization headers in our back end so the server admin won't need to do anything. I added a flag in the config file for plotly_proxy_authorization.

todo:

  • extend the tests

@@ -48,11 +48,15 @@ def warning_on_one_line(message, category, filename, lineno, file=None, line=Non
# this sets both the DEFAULTS and the TYPES for these items
_FILE_CONTENT = {CREDENTIALS_FILE: {'username': '',
'api_key': '',
'proxy_username': '',
'proxy_passwd': '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we change to proxy_password?

@chriddyp
Copy link
Member

@BRONSOLO sweet dude! think we should add it to sign_in too, for consistency?

@BRONSOLO
Copy link
Member Author

@chriddyp boom - thx for the comments/suggestions. Yeah, I'll add it to sign_in + include some tests and ping you for another pass.

@BRONSOLO
Copy link
Member Author

@chriddyp could you take another look through this guy?

"""Set the keyword-value pairs in `~/.plotly/.config`.

:param (str) plotly_domain: ex - https://plot.ly
:param (str) plotly_streaming_domain: ex - https://stream.plot.ly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is usually set as stream.plot.ly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally - thanks.

@chriddyp
Copy link
Member

chriddyp commented Jul 1, 2015

other than that comment, looks good to me! 💃

BRONSOLO added a commit that referenced this pull request Jul 1, 2015
@BRONSOLO BRONSOLO merged commit 2b1c8c9 into master Jul 1, 2015
@BRONSOLO BRONSOLO deleted the plotly_proxy_auth branch July 1, 2015 20:16
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.

2 participants