SecurityDebugHelper
extends Helper
in package
Security Debug Helper
Provides debugging information about user permissions, policies, and authorization checks. Only active when debug mode is enabled. Displays policies with branch scope info and authorization check log from the current request.
Table of Contents
Properties
Methods
- displayAuthorizationChecks() : string
- Display authorization checks that occurred during this request
- displaySecurityInfo() : string
- Display complete security debug information
- displayUserPolicies() : string
- Display user policies with branch scope information
- formatBranchIds() : string
- Format branch IDs for display
- formatNoUserInfo() : string
- Format message for no user
- formatScopingRule() : string
- Format scoping rule for display
- getShortClassName() : string
- Get short class name from fully qualified class name
Properties
$Html
public
HtmlHelper
$Html
$helpers
protected
array<string|int, mixed>
$helpers
= ['Html']
Methods
displayAuthorizationChecks()
Display authorization checks that occurred during this request
public
displayAuthorizationChecks() : string
Return values
string —HTML output of authorization checks
displaySecurityInfo()
Display complete security debug information
public
displaySecurityInfo(KmpIdentityInterface|null $user) : string
Parameters
- $user : KmpIdentityInterface|null
-
The current user
Return values
string —HTML output of security information
displayUserPolicies()
Display user policies with branch scope information
public
displayUserPolicies(KmpIdentityInterface $user) : string
Parameters
- $user : KmpIdentityInterface
-
The current user
Return values
string —HTML output of user policies
formatBranchIds()
Format branch IDs for display
protected
formatBranchIds(object $policyData) : string
Parameters
- $policyData : object
-
Policy data object
Return values
string —Formatted branch information
formatNoUserInfo()
Format message for no user
protected
formatNoUserInfo() : string
Return values
stringformatScopingRule()
Format scoping rule for display
protected
formatScopingRule(string $scopingRule) : string
Parameters
- $scopingRule : string
-
The scoping rule constant
Return values
string —Formatted scoping rule
getShortClassName()
Get short class name from fully qualified class name
protected
getShortClassName(string $className) : string
Parameters
- $className : string
-
Full class name
Return values
string —Short class name