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

persist userid cookie when auth is disabled #1076

Merged
merged 2 commits into from Nov 18, 2022

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Nov 18, 2022

Allows a stable anonymous user, persisted via cookie (just like a token login).

closes #1033

ensures stable userid for a given browser when auth is completely disabled
@codecov
Copy link

codecov bot commented Nov 18, 2022

Codecov Report

Base: 76.23% // Head: 76.22% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (044fcbd) compared to base (908e843).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1076      +/-   ##
==========================================
- Coverage   76.23%   76.22%   -0.01%     
==========================================
  Files          63       63              
  Lines        8226     8228       +2     
  Branches     1636     1637       +1     
==========================================
+ Hits         6271     6272       +1     
- Misses       1548     1550       +2     
+ Partials      407      406       -1     
Impacted Files Coverage Δ
jupyter_server/auth/identity.py 84.76% <100.00%> (+1.37%) ⬆️
jupyter_server/pytest_plugin.py 91.08% <100.00%> (+0.02%) ⬆️
jupyter_server/services/kernels/handlers.py 61.61% <0.00%> (-1.02%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@minrk minrk added the bug label Nov 18, 2022
Copy link
Collaborator

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! I'll wait for others to take a look.

Copy link
Contributor

@davidbrochart davidbrochart left a comment

Choose a reason for hiding this comment

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

Thanks @minrk, I checked that it fixes jupyterlab/jupyterlab#13432.

@Zsailer
Copy link
Member

Zsailer commented Nov 18, 2022

Thank you, Min, for the fixing this so quickly!

@Zsailer Zsailer merged commit e66306d into jupyter-server:main Nov 18, 2022
@hbcarlos
Copy link
Contributor

Thanks for the fix Min!

@ellisonbg
Copy link
Contributor

ellisonbg commented Nov 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jupyter-server v2 generates new user for each request when auth is disabled
6 participants