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

Debug #1

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Debug #1

wants to merge 25 commits into from

Conversation

krassowski
Copy link
Owner

No description provided.

fix passing the setting down from the traitlet to web server
`WebsocketMixing` may be used with or without `JupyterHandler`;
- if used with it, we want to have custom auth implementation
  because redirecting to login page does not make sense for
  a websocket's GET request
- if these are used without `JupyterHandler `we want the auth
  rules to still apply, even though the `current_user`
  logic may differ slightly
Also adds `@ws_authenticated` to make the check simpler
warn if `allow_unauthenticated_access` is toggled off.
This is more reasonable default for now, we may revise
this in future releases.
This requires adding the warning to allow list as otherwise
pytest is configured raise on any warnings but this one is expected
The websocket test is failing as of this commit
because as pointed out in review the `_maybe_auth`
is using the default user rather the one from `IdentityProvider`
even in websockets (but only if those inherit from JupyterHandler,
and if they do not fallback to previous implementation and warn).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant