From 7cb649c303800a9439f03cf63c47a9ab1c2a7e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 24 Oct 2018 09:48:00 +0200 Subject: [PATCH] docs: fix auth message docs on push API Thanks @gdombiak for the heads-up --- docs/api/push.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/push.rst b/docs/api/push.rst index 83fe2a486..87e40bf5d 100644 --- a/docs/api/push.rst +++ b/docs/api/push.rst @@ -55,15 +55,15 @@ OctoPrint's SockJS socket also accepts two commands from the client to the serve (as it is by default), since it will prevent any kind of status messages to be sent to connected unauthenticated clients. - The ``auth`` message expects a session key to be obtained from the successful payload of a - :ref:`(passive or active) login via the API `. + The ``auth`` message expects the user id of the user to authenticate followed by ``:`` and a session key to be + obtained from the successful payload of a :ref:`(passive or active) login via the API `. Example for a ``auth`` client-server-message: .. sourcecode:: javascript { - "auth": "LGZ0trf8By" + "auth": "someuser:LGZ0trf8By" } * ``throttle``: Usually, OctoPrint will push the general state update