SudoModeController implements LoggerAwareInterface uses LoggerAwareTrait
FinalYes
Handling visual sudo mode verification for configured routes/modules.
Attributes
- #[AsController]
Table of Contents
Interfaces
- LoggerAwareInterface
Methods
- __construct() : mixed
- applyAction() : ResponseInterface
- Called from JavaScript web-component, throwing an exception that is handled by `SudoModeInterceptor` middleware.
- buildModuleActionUriForClaim() : UriInterface
- errorAction() : ResponseInterface
- Renders markup with error messages in case `AccessClaim` could not be resolved (e.g. when expired).
- moduleAction() : ResponseInterface
- Renders the module backend markup, including the `<typo3-backend-security-sudo-mode>` element.
- verifyAction() : ResponseInterface
- Verifies the provided password, called via AJAX from JavaScript web-component.
Methods
__construct()
public
__construct(UriBuilder $uriBuilder, PageRenderer $pageRenderer, AccessFactory $factory, AccessStorage $storage, PasswordVerification $passwordVerification, ModuleTemplateFactory $moduleTemplateFactory, BackendEntryPointResolver $backendEntryPointResolver) : mixed
Parameters
- $uriBuilder : UriBuilder
- $pageRenderer : PageRenderer
- $factory : AccessFactory
- $storage : AccessStorage
- $passwordVerification : PasswordVerification
- $moduleTemplateFactory : ModuleTemplateFactory
- $backendEntryPointResolver : BackendEntryPointResolver
applyAction()
Called from JavaScript web-component, throwing an exception that is handled by `SudoModeInterceptor` middleware.
public
applyAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacebuildModuleActionUriForClaim()
public
buildModuleActionUriForClaim(AccessClaim $claim) : UriInterface
Parameters
- $claim : AccessClaim
Return values
UriInterfaceerrorAction()
Renders markup with error messages in case `AccessClaim` could not be resolved (e.g. when expired).
public
errorAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacemoduleAction()
Renders the module backend markup, including the `<typo3-backend-security-sudo-mode>` element.
public
moduleAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceverifyAction()
Verifies the provided password, called via AJAX from JavaScript web-component.
public
verifyAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface