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

fix(notebook): avoid to create notebook url for anonymous users #491

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

lorenzo-cavazzi
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi commented Jun 14, 2019

The project's notebook URL computation generates an API call (before #460, it was computed locally) that results in a 401 response for anonymous users, which triggers the authentication. There is no need to compute that URL for users who can't possibly have a running notebook server.

To reproduce: open any public project on dev as anonymous user (e.g. https://dev.renku.ch/projects/72). This will trigger authentication due to a call to https://dev.renku.ch/api/notebooks/.../f6404d191d8067eda7a7083efdf57e4b7f56922b

Copy link
Contributor

@ciyer ciyer left a comment

Choose a reason for hiding this comment

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

Looks good!

@lorenzo-cavazzi lorenzo-cavazzi merged commit 61f2e09 into master Jun 18, 2019
@lorenzo-cavazzi lorenzo-cavazzi deleted the 000-fix-notebook-url branch June 18, 2019 07:14
@ciyer ciyer added this to the 0.5.2 milestone Jul 2, 2019
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