SecurityDebugController

Security Debug Controller

Handles the display and interaction of security debug information in debug mode. Provides toggle functionality to show/hide detailed security information including user policies and authorization check logs.

Features:

  • Toggle visibility of security debug panel
  • Smooth slide animations
  • Persistent state during page session
  • AJAX loading of security information on first view

HTML Structure:

<div data-controller="security-debug">
  <button data-action="click->security-debug#toggle" data-security-debug-target="toggleBtn">
    Show Security Info
  </button>
  <div data-security-debug-target="panel" style="display: none;">
    <!-- Security info content -->
  </div>
</div>

Constructor

new SecurityDebugController()

Methods

hide()

Hide the security debug panel

initialize()

Initialize controller

show()

Show the security debug panel

toggle()

Toggle the visibility of the security debug panel