|
TradeBench 1.0.0
Algorithmic Trading Backtesting Platform
|
Handles JWT verification and Role-Based Access Control (RBAC). More...
Static Public Member Functions | |
| static | authenticate (?string $tokenFromQuery=null, ?string $requiredRole=null) |
| Authenticates a request using a Bearer token or Query parameter. | |
Handles JWT verification and Role-Based Access Control (RBAC).
|
static |
Authenticates a request using a Bearer token or Query parameter.
| string | null | $tokenFromQuery | Optional token provided via URL parameters (for SSE). |
| string | null | $requiredRole | The minimum role required to proceed (e.g., 'admin', 'pro'). |