{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/jupyterhub/issues/337","labels_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/337/comments","events_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/337/events","html_url":"https://github.com/jupyter/jupyterhub/issues/337","id":117307386,"number":337,"title":"Pass OAuth access_token to the Spawner","user":{"login":"dolfim","id":2662934,"avatar_url":"https://avatars.githubusercontent.com/u/2662934?v=3","gravatar_id":"","url":"https://api.github.com/users/dolfim","html_url":"https://github.com/dolfim","followers_url":"https://api.github.com/users/dolfim/followers","following_url":"https://api.github.com/users/dolfim/following{/other_user}","gists_url":"https://api.github.com/users/dolfim/gists{/gist_id}","starred_url":"https://api.github.com/users/dolfim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolfim/subscriptions","organizations_url":"https://api.github.com/users/dolfim/orgs","repos_url":"https://api.github.com/users/dolfim/repos","events_url":"https://api.github.com/users/dolfim/events{/privacy}","received_events_url":"https://api.github.com/users/dolfim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T08:32:33Z","updated_at":"2015-11-20T13:32:41Z","closed_at":null,"body":"Hi,\r\n\r\nIs it possible to pass the access_token generated during the OAuth authentication to the notebooks?\r\n\r\nOur goal would be to authenticate the users against our API and setup the notebooks such that they don't have to authenticate again when using the API from their scripts."},"comment":{"url":"https://api.github.com/repos/jupyter/jupyterhub/issues/comments/158404311","html_url":"https://github.com/jupyter/jupyterhub/issues/337#issuecomment-158404311","issue_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/337","id":158404311,"user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T13:32:40Z","updated_at":"2015-11-20T13:32:40Z","body":"It is, when a Spawner starts, it calls `Authenticator.pre_spawn_start(user, spawner)`, which you can use to allow the Authenticator to add things to the env. This hook is new in JupyterHub 0.3."}}