Apache Shiro · JSON Structure

Apache Shiro Login Response Structure

Successful authentication response

Type: object Properties: 4
AuthenticationAuthorizationCryptographyJavaSecurityApacheOpen Source

LoginResponse is a JSON Structure definition published by Apache Shiro, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

sessionId principal roles permissions

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shiro/refs/heads/main/json-structure/apache-shiro-login-response-structure.json",
  "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"
    }
  },
  "name": "LoginResponse"
}