{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/jupyter-js-services/issues/205","repository_url":"https://api.github.com/repos/jupyter/jupyter-js-services","labels_url":"https://api.github.com/repos/jupyter/jupyter-js-services/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/jupyter-js-services/issues/205/comments","events_url":"https://api.github.com/repos/jupyter/jupyter-js-services/issues/205/events","html_url":"https://github.com/jupyter/jupyter-js-services/issues/205","id":167492221,"number":205,"title":"With credentials usage","user":{"login":"hamsal","id":3146013,"avatar_url":"https://avatars.githubusercontent.com/u/3146013?v=3","gravatar_id":"","url":"https://api.github.com/users/hamsal","html_url":"https://github.com/hamsal","followers_url":"https://api.github.com/users/hamsal/followers","following_url":"https://api.github.com/users/hamsal/following{/other_user}","gists_url":"https://api.github.com/users/hamsal/gists{/gist_id}","starred_url":"https://api.github.com/users/hamsal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamsal/subscriptions","organizations_url":"https://api.github.com/users/hamsal/orgs","repos_url":"https://api.github.com/users/hamsal/repos","events_url":"https://api.github.com/users/hamsal/events{/privacy}","received_events_url":"https://api.github.com/users/hamsal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-25T23:56:29Z","updated_at":"2016-07-26T01:08:32Z","closed_at":null,"body":"The documentation seems sparse which I understand is because the project is so young, I can't seem to find anything about creating a session pointing to jupyter server that has password auth enabled. The code snippet I am trying to work it into looks like this, trying to use \"withCredentials\":\r\n\r\n```\r\nvar options = {\r\n  baseUrl: BASE_URL,\r\n  wsUrl: WS_URL,\r\n  kernelName: 'python',\r\n  path: '/tmp/foo.ipynb'\r\n}\r\nservices.startNewSession(options).then(function(session) {\r\n    // Execute and handle replies on the kernel.\r\n    var future = session.kernel.execute({ code: code });\r\n    future.onReply = function(reply) {\r\n ...\r\n```\r\n\r\nI took a guess and tried:\r\n\r\n```\r\nvar options = {\r\n  baseUrl: BASE_URL,\r\n  wsUrl: WS_URL,\r\n  kernelName: 'python',\r\n  path: '/tmp/foo.ipynb'\r\n  withCredentials: true,\r\n  user: 'foo',\r\n  password: 'bar'\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jupyter/jupyter-js-services/issues/comments/235133525","html_url":"https://github.com/jupyter/jupyter-js-services/issues/205#issuecomment-235133525","issue_url":"https://api.github.com/repos/jupyter/jupyter-js-services/issues/205","id":235133525,"user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T01:08:32Z","updated_at":"2016-07-26T01:08:32Z","body":"Hmm, and the output from running the standard server (e.g. `jupyter notebook --debug`)?"}}
{"actor":{"display_login":"blink1073"}}