Property | Type | Description | |
---|---|---|---|
$authenticationManager | Neos\Flow\Security\Authentication\AuthenticationManagerInterface | ||
$securityContext |
Method | Description | |
---|---|---|
authenticateAction ( ) : string | Calls the authentication manager to authenticate all active tokens and redirects to the original intercepted request on success if there is one stored in the security context. If no intercepted request is found, the function simply returns. | |
loginAction ( ) : void | This action is used to show the login form. To make this work in your package simply create a template for this action, which could look like this in the simplest case: | |
logoutAction ( ) : void | Logs all active tokens out. Override this, if you want to have some custom action here. You can always call the parent method to do the actual logout. |
Method | Description | |
---|---|---|
getErrorFlashMessage ( ) : Neos\Error\Messages\Error | A template method for displaying custom error flash messages, or to display no flash message at all on errors. Override this to customize the flash message in your action controller. | |
onAuthenticationFailure ( |
Is called if authentication failed. | |
onAuthenticationSuccess ( |
Is called if authentication was successful. If there has been an intercepted request due to security restrictions, you might want to use something like the following code to restart the originally intercepted request: |
public authenticateAction ( ) : string | ||
return | string |
protected getErrorFlashMessage ( ) : Neos\Error\Messages\Error | ||
return | Neos\Error\Messages\Error | The flash message |
public loginAction ( ) : void | ||
return | void |
public logoutAction ( ) : void | ||
return | void |
protected onAuthenticationFailure ( |
||
$exception | The exception thrown while the authentication process | |
return | void |
abstract protected onAuthenticationSuccess ( |
||
$originalRequest | The request that was intercepted by the security framework, NULL if there was none | |
return | string |
protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager | ||
return | Neos\Flow\Security\Authentication\AuthenticationManagerInterface |