Skip to main content
POST
Sign in
Signs the user in. Send the request with HTTP Basic authentication (Authorization: Basic <base64(user:password)>). The response sets two HttpOnly cookies that authorize every other endpoint.

Authorization

string
required
Basic authentication credentials: Basic <base64(username:password)>.

Response

Cookies

string
required
Session JWT. Send it on every subsequent request. Expires after 1 hour (Max-Age=3600).
string
required
Refresh token used to obtain a new session token. Expires after 24 hours (Max-Age=86400).
Both cookies are issued with the following attributes:
200 OK
Because the cookies are HttpOnly, your application cannot read or store them itself. Browser clients should send requests with credentials included; server-side and CLI clients should persist and replay the Set-Cookie values.
Browsers attach the cookies automatically as long as the request includes credentials:
Other clients must store the cookies and send them back. With curl, use a cookie jar:

Session lifetime

The session token is valid for 1 hour. After it expires, use the refresh token to obtain a new session, or sign in again. The refresh token is valid for 24 hours; once it expires, the user must sign in with their credentials.

Errors

Error responses use the application/vnd.goa.error content type: