PasswordToken
class PasswordToken extends AbstractToken implements PasswordTokenInterface (View source)
An authentication token used for simple password authentication.
Constants
private DEFAULT_PASSWORD_POST_FIELD |
|
Properties
protected string | $authenticationProviderName | from AbstractToken | |
protected int | $authenticationStatus | Current authentication status of this token |
from AbstractToken |
protected array | $credentials | The password credentials |
|
protected Account | $account | from AbstractToken | |
protected array | $requestPatterns | from AbstractToken | |
protected EntryPointInterface | $entryPoint | The authentication entry point |
from AbstractToken |
protected array | $options | Token options |
from AbstractToken |
Methods
Build an instance of this token, potentially passing it options that can be configured via tokenOptions
Returns the name of the authentication provider responsible for this token
Sets the name of the authentication provider responsible for this token
Returns the configured authentication entry point, NULL if none is available
Returns an array of set \Neos\Flow\Security\RequestPatternInterface, NULL if none was set
Returns the credentials (username and password) of this token.
Returns the account if one is authenticated, NULL otherwise.
Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
Returns a string representation of the token for logging purposes.
Updates the password credential from the POST vars, if the POST parameters are available. Sets the authentication status to AUTHENTICATION_NEEDED, if credentials have been sent.
No description
Details
__construct(array $options = null)
Build an instance of this token, potentially passing it options that can be configured via tokenOptions
string
getAuthenticationProviderName()
Returns the name of the authentication provider responsible for this token
void
setAuthenticationProviderName(string $authenticationProviderName)
Sets the name of the authentication provider responsible for this token
bool
isAuthenticated()
Returns true if this token is currently authenticated
void
setAuthenticationEntryPoint(EntryPointInterface $entryPoint)
Sets the authentication entry point
EntryPointInterface
getAuthenticationEntryPoint()
Returns the configured authentication entry point, NULL if none is available
bool
hasRequestPatterns()
Returns true if any request pattern has been defined
void
setRequestPatterns(array $requestPatterns)
Sets request patterns
array
getRequestPatterns()
Returns an array of set \Neos\Flow\Security\RequestPatternInterface, NULL if none was set
mixed
getCredentials()
Returns the credentials (username and password) of this token.
Account
getAccount()
Returns the account if one is authenticated, NULL otherwise.
void
setAccount(Account $account = null)
Set the (authenticated) account
void
setAuthenticationStatus(int $authenticationStatus)
Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
int
getAuthenticationStatus()
Returns the current authentication status
string
__toString()
Returns a string representation of the token for logging purposes.
bool
updateCredentials(ActionRequest $actionRequest)
Updates the password credential from the POST vars, if the POST parameters are available. Sets the authentication status to AUTHENTICATION_NEEDED, if credentials have been sent.
Note: You need to send the password in this POST parameter: __authentication[Neos][Flow][Security][Authentication][Token][PasswordToken][password]
string
getPassword()
No description