{"action":"created","issue":{"url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/2044","repository_url":"https://api.github.com/repos/jupyterhub/jupyterhub","labels_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/2044/labels{/name}","comments_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/2044/comments","events_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/2044/events","html_url":"https://github.com/jupyterhub/jupyterhub/issues/2044","id":341816566,"node_id":"MDU6SXNzdWUzNDE4MTY1NjY=","number":2044,"title":"400: Bad Request - OAuth state missing from cookies","user":{"login":"cmseal","id":24206640,"node_id":"MDQ6VXNlcjI0MjA2NjQw","avatar_url":"https://avatars3.githubusercontent.com/u/24206640?v=4","gravatar_id":"","url":"https://api.github.com/users/cmseal","html_url":"https://github.com/cmseal","followers_url":"https://api.github.com/users/cmseal/followers","following_url":"https://api.github.com/users/cmseal/following{/other_user}","gists_url":"https://api.github.com/users/cmseal/gists{/gist_id}","starred_url":"https://api.github.com/users/cmseal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmseal/subscriptions","organizations_url":"https://api.github.com/users/cmseal/orgs","repos_url":"https://api.github.com/users/cmseal/repos","events_url":"https://api.github.com/users/cmseal/events{/privacy}","received_events_url":"https://api.github.com/users/cmseal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-17T08:28:41Z","updated_at":"2018-07-18T20:23:23Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nWhen using Oauth2 (Google), after successful logging out, logging in again causes \"400 : Bad Request\r\nOAuth state missing from cookies\"\r\n\r\n**To Reproduce**\r\n* JupyterHub 0.9.1 on Centos 7\r\n* DockerSpawner\r\n* Oauth2 configured for Google, with specific domain\r\n* Login successfully, Logout, then Login again\r\n\r\n**Expected behavior**\r\nShould be able to login again without issue.\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: MacOS High Sierra\r\n - Browser: tried with Safari 11.1.1 and Chrome 67\r\n\r\n**Additional context**\r\nJul 17 08:19:58 hub.domain.com jupyterhub[3042]: [I 2018-07-17 08:19:58.697 JupyterHub log:158] 200 GET /hub/api/authorizations/token/[secret] (chris.seal@172.17.0.6) 308.25ms\r\nJul 17 08:20:00 hub.domain.com jupyterhub[3042]: [I 2018-07-17 08:20:00.497 JupyterHub login:19] User logged out: chris.seal\r\nJul 17 08:20:00 hub.domain.com jupyterhub[3042]: [I 2018-07-17 08:20:00.782 JupyterHub log:158] 302 GET /hub/logout -> /hub/login (chris.seal@::ffff:127.0.0.1) 447.40ms\r\nJul 17 08:20:00 hub.domain.com jupyterhub[3042]: [I 2018-07-17 08:20:00.811 JupyterHub log:158] 200 GET /hub/login (@::ffff:127.0.0.1) 2.52ms\r\nJul 17 08:20:05 hub.domain.com jupyterhub[3042]: [W 2018-07-17 08:20:05.466 JupyterHub web:1667] 400 GET /hub/oauth_callback?state=eyJzdGF0ZV9pZCI6ICJhMWU1NDI1NDJiZGQ0MWQ1YmViYTFmOTllNTA1MDk2NSIsICJuZXh0X3VybCI6ICIifQ%3D%3D&code=4/AABGZ7VcfIz8MsbISZYXEhUSGsXld37l_2i-YGF-1XsLDPGzcB0hDnABR3z7B10RNaJEBKQAauGX2DzTuX_T-OQ&authuser=0&hd=domain.com&session_state=0f4e3873d22d44f40494c9271f8118b59e3dc7fb..fb74&prompt=none (::ffff:127.0.0.1): OAuth state missing from cookies\r\n"},"comment":{"url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/comments/406062193","html_url":"https://github.com/jupyterhub/jupyterhub/issues/2044#issuecomment-406062193","issue_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/2044","id":406062193,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjA2MjE5Mw==","user":{"login":"betatim","id":1448859,"node_id":"MDQ6VXNlcjE0NDg4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1448859?v=4","gravatar_id":"","url":"https://api.github.com/users/betatim","html_url":"https://github.com/betatim","followers_url":"https://api.github.com/users/betatim/followers","following_url":"https://api.github.com/users/betatim/following{/other_user}","gists_url":"https://api.github.com/users/betatim/gists{/gist_id}","starred_url":"https://api.github.com/users/betatim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betatim/subscriptions","organizations_url":"https://api.github.com/users/betatim/orgs","repos_url":"https://api.github.com/users/betatim/repos","events_url":"https://api.github.com/users/betatim/events{/privacy}","received_events_url":"https://api.github.com/users/betatim/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T20:23:23Z","updated_at":"2018-07-18T20:23:23Z","author_association":"MEMBER","body":"Does https://github.com/jupyterhub/jupyterhub/issues/1519#issuecomment-342806150 help fix your problem? Specifically are the domain name the same when you are being redirected to google and when you return? One of them HTTP the other HTTPS?"}}
{"actor":{"display_login":"betatim"}}