-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Plotly proxy auth #239
Conversation
…lotly-Authorization header for API
@@ -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': '', |
There was a problem hiding this comment.
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
?
@BRONSOLO sweet dude! think we should add it to |
@chriddyp boom - thx for the comments/suggestions. Yeah, I'll add it to |
@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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally - thanks.
other than that comment, looks good to me! 💃 |
@chriddyp @theengineear. This allows enterprise users working behind a proxy to specify
Plotly-Authorization
header as abasic auth
header for ourAPI v2
. This frees up theAuthorization
header for the initial proxy layer. For now, it is up to the server admin to handle converting thePlotly-Authorization
header to the expectedAuthorization
header for basic auth once authorized over the proxy. In the future, we could simply accept bothPlotly-Authorization
andAuthorization
headers in our back end so the server admin won't need to do anything. I added a flag in the config file forplotly_proxy_authorization
.todo: