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

Mutiple oauth app urls #29

Merged
merged 9 commits into from
Mar 26, 2018
Merged

Mutiple oauth app urls #29

merged 9 commits into from
Mar 26, 2018

Conversation

chriddyp
Copy link
Member

the previous implementation of `wait_for` wasn’t very reliable. I
switched it out in a separate dash repo in the fall, now copying those
changes over here.
they are misconfigured for some reason and not super necessary for this
test suite anyway
`self.driver.get(…)` is now blocking if the page has a basic auth
screen and it takes a long time to error out. this wasn’t the case with
the old chromedriver.
@chriddyp
Copy link
Member Author

@cldougl @scjody - Ready for review. Related to https://github.com/plotly/dash-on-premise-sample-app/pull/13. This PR allows multiple oauth URLs to be used, enabling users to add plotly login screens to their apps running on localhost and on their on-prem environment.

Copy link
Contributor

@scjody scjody left a comment

Choose a reason for hiding this comment

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

💃 after 🎎

CHANGELOG.md Outdated
the login screen available in your deployed app. Usage:
```
dash_auth.PlotlyAuth(app, 'my-app', 'private', [
'http://localhost:8050',
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the "main" app URL should be first. I'd call this out in your docs and fix this example.

on the Plotly server
sharing: 'private' or 'public'
app_url: String or list of strings. The URL(s) of the Dash app.
This is used to register your app with Plotly's OAuth system.
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, the "main" URL goes first.

@scjody
Copy link
Contributor

scjody commented Mar 26, 2018

Also please make sure you've tested all the code paths on an actual On-Prem server.

@chriddyp chriddyp requested a review from cldougl March 26, 2018 16:26
Copy link
Member

@cldougl cldougl left a comment

Choose a reason for hiding this comment

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

💃

@chriddyp chriddyp merged commit 93266df into master Mar 26, 2018
@chriddyp chriddyp deleted the mutiple-oauth-app-urls branch March 26, 2018 19:13
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.

3 participants