AuthDebugPresenter
extends Presenter
in package
Dev-only helpers for testing the Front JWT auto-refresh flow. Not routed in production (every action refuses when Debugger::$productionMode is true).
Endpoints: GET /script/system/auth-debug/clear-access — wipes front.auth.{token,payload}, keeps refreshToken. Reload a Front page afterwards and AuthStorageTrait should silently refresh, producing TOKEN_REFRESHED in log/auth.log. GET /script/system/auth-debug/clear-all — wipes the whole front.auth section. Next request behaves like an anonymous visit. GET /script/system/auth-debug/dump — JSON dump of current session keys (lengths only for token/refreshToken, not the values).
Table of Contents
Properties
Methods
- __construct() : mixed
- actionClearAccess() : void
- actionClearAll() : void
- actionDump() : void
- startup() : void
Properties
$authStorage read-only
private
AuthSessionStorage
$authStorage
Methods
__construct()
public
__construct(AuthSessionStorage $authStorage) : mixed
Parameters
- $authStorage : AuthSessionStorage
actionClearAccess()
public
actionClearAccess() : void
actionClearAll()
public
actionClearAll() : void
actionDump()
public
actionDump() : void
startup()
public
startup() : void