POST Login

POST /api/login

Creates a session and then returns the session cookie

Request Headers:
Request JSON Object:
  • bit encoded string name (64) – username
  • bit encoded string password (64) – password
  • url (object) – origin url from which you came
Response Headers:
Response JSON Object:
  • success (boolean) – boolean representing successful login
  • target (string) – original url user tried to access (for a redirect after login)

Sample Request

POST /api/login HTTP/1.1
Host: localhost:8092
Content-Length: 45
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/1.2.0 CPython/2.7.3 Linux/2.6.32-358.2.1.el6.x86_64
content-type: application/json

"user_name":"64 bit encoded slycat(c2x5Y2F0)",
"password":"64 bit encoded slycat(c2x5Y2F0)",

Sample Response

HTTP/1.1 201 Project created.
Date: Thu, 11 Apr 2013 21:30:16 GMT
Content-Length: 42
Content-Type: application/json
Location: http://localhost:8092/projects/505d0e463d5ed4a32bb6b0fe9a000d36
Server: CherryPy/3.2.2

{"target": "","success":true}