{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-oidcsession-schema.json",
  "title": "OIDCSession contains session details for a current login.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-oidc-sessions-api-openapi.yml#/components/schemas/OIDCSession",
  "properties": {
    "created_at": {
      "description": "CreatedAt is when the session was started.",
      "format": "date-time",
      "type": "string",
      "x-go-name": "CreatedAt"
    },
    "email": {
      "description": "Email is the email of the user that holds the session.",
      "type": "string",
      "x-go-name": "Email"
    },
    "expires_at": {
      "description": "ExpiresAt is when the session will expire.",
      "format": "date-time",
      "type": "string",
      "x-go-name": "ExpiresAt"
    },
    "ip": {
      "description": "IP is the IP address of the user that holds the session.",
      "type": "string",
      "x-go-name": "IP"
    },
    "user_agent": {
      "description": "UserAgent is the UserAgent of the user that holds the session.",
      "type": "string",
      "x-go-name": "UserAgent"
    },
    "username": {
      "description": "Username is the name of the user that holds the session.",
      "type": "string",
      "x-go-name": "Username"
    },
    "uuid": {
      "description": "UUID is the session UUID.",
      "type": "string",
      "x-go-name": "UUID"
    }
  },
  "type": "object",
  "x-go-package": "github.com/canonical/lxd/shared/api"
}