Merge pull request #303 from akretz/fix-token

Fix token authentication
This commit is contained in:
John Miller 2018-05-14 20:46:56 -05:00 committed by GitHub
commit 5f7e3bf741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ session, along with the login token."
(condition-case err
(with-current-buffer (process-buffer %ein:jupyter-server-session%) ;;ein:jupyter-server-buffer-name
(goto-char (point-max))
(re-search-backward "\\(https?://.*:[0-9]+\\)/\\?token=\\(.*\\)" nil)
(re-search-backward "\\(https?://.*:[0-9]+\\)/\\?token=\\([[:alnum:]]*\\)" nil)
(let ((url-or-port (match-string 1))
(token (match-string 2)))
(list url-or-port token)))