Loop/Architecture/Rooms: Difference between revisions

Jump to navigation Jump to search
→‎Leaving a Room: Basic auth for leaving
(→‎Leaving a Room: Basic auth for leaving)
Line 385: Line 385:


==== Leaving a Room ====
==== Leaving a Room ====
* For a desktop client user, the "Authorization" header field is populated with the HAWK token (using a scheme of "Hawk"), just like it is for other requests.
* For the standalone client, the "Authorization" header field is encoded using [http://tools.ietf.org/html/rfc1945#section-11.1 Basic authentication]. The user ID portion is the sessionToken provided to the user when they joined the room, and the password is blank.


  POST /rooms/QzBbvGmIZWU HTTP/1.1
  POST /rooms/QzBbvGmIZWU HTTP/1.1
Line 394: Line 397:
   
   
  {
  {
     "action": "leave",
     "action": "leave"
    "sessionToken": "T1==cGFydG5lcl9pZD00NDY2OTEwMiZzaW"
  }
  }


68

edits

Navigation menu