Harthelm Docs

The current browser session

Answers 401 when there is no valid session cookie; the UI then shows the login page.

Generated from openapi/harthelm.yaml at v1.5.0
GET
/auth/session

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Response Body

The session and its user.

application/json
  1. response
user*
break_glass*boolean

The session belongs to the break-glass administrator; the UI shows a red banner.

created_at*string
Formatdate-time
expires_at*string

Absolute end of the session (7 days after sign-in).

Formatdate-time
idle_expires_at*string

End of the session without activity (12 h after the last request).

Formatdate-time
curl -X GET 'https://console.example.com/api/v1/auth/session'
{  "user": {    "id": 1,    "email": "string",    "name": "string",    "is_cluster_admin": true,    "email_verified": true,    "picture_url": "string",    "issuer": "string"  },  "break_glass": true,  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "idle_expires_at": "2019-08-24T14:15:22Z"}