Skip to content

"oauth state does not match. Try logging in again." error when using JupyterHub as an oauth provider #2841

@bitnik

Description

@bitnik

When I deploy binderhub (chart version 0.2.0-017.7c50358) with authentication enabled (documentation), I get error if I set binderhub.replicas higher than 1

binderhub:
  pdb:
    minAvailable: 1
  replicas: 2

When I go to binderhub page, I am redirected to "Authorize access" page (which is okay/normal for the moment):

Authorize access

When I click on the "Authorize" button, I get oauth state does not match. Try logging in again. error and this error doesn't occur if replicas is 1:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/tornado/web.py", line 1543, in _execute
    result = yield result
  File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1099, in run
    value = future.result()
  File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 296, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/types.py", line 248, in wrapped
    coro = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/jupyterhub/services/auth.py", line 973, in get
    raise HTTPError(403, "oauth state does not match. Try logging in again.")
tornado.web.HTTPError: HTTP 403: Forbidden (oauth state does not match. Try logging in again.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions