Session Authentication
Logging in
Changed onIn order to log a User in to a new Session, you must provide their credentials, in JSON format.
For security reasons, the only possible results are success or failure. No detail is provided upon failure.
Successful responses will come with an HTTP-Only, Secure-Only cookie. This cookie is primarily meant for use by the Central frontend, and we do not recommend relying upon it. It will only work on GET requests, and it will only work over HTTPS.
post/v1/sessions
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/sessions
- Authnone declared
Request body
Example request
{
"email": "my.email.address@getodk.org",
"password": "my.super.secure.password"
}Response
OK
Changes
- info
api operation id
Logging inremoved and replaced withlogIn
- info
- info
removed the non-success response with the status
- info