{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shiro/refs/heads/main/json-schema/apache-shiro-login-response-schema.json",
  "title": "LoginResponse",
  "description": "Successful authentication response",
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "Shiro session identifier"
    },
    "principal": {
      "type": "string",
      "description": "Authenticated principal name"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Roles assigned to the user"
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Explicit permissions granted to the user"
    }
  }
}