canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,093
edits
| Line 8: | Line 8: | ||
== Authentication == | == Authentication == | ||
* POST | * POST /register/login/username returns a JSON object with a "project" attribute that gives the key for a user's private files project. The body of the POST is the user's password. | ||
* POST /register/new/username returns a JSON object with the "project" attribute. The body of the POST should include the user's password and email address, encoded the same as form inputs (password, email). | |||
* POST (or GET) /register/logout/ | * POST (or GET) /register/logout/ | ||
* GET /register/userinfo/ for debugging, it will tell you who it thinks you are logged in as and will also give you the name of the user project (this is in JSON format) | * GET /register/userinfo/ for debugging, it will tell you who it thinks you are logged in as and will also give you the name of the user project (this is in JSON format) | ||