PersistedUsernamePasswordProvider
class PersistedUsernamePasswordProvider extends AbstractProvider (View source)
An authentication provider that authenticates Neos\Flow\Security\Authentication\Token\UsernamePassword tokens.
The accounts are stored in the Content Repository.
Properties
protected string | $name | from AbstractProvider | |
protected array | $options | from AbstractProvider | |
protected AccountRepository | $accountRepository | ||
protected HashService | $hashService | ||
protected Context | $securityContext | ||
protected PersistenceManagerInterface | $persistenceManager | ||
protected PrecomposedHashProvider | $precomposedHashProvider | The PrecomposedHashProvider has to be injected non-lazy to prevent timing differences |
Methods
Factory method
Protected constructor, see create method
Returns true if the given token can be authenticated by this provider
Returns the class names of the tokens this provider can authenticate.
Checks the given token for validity and sets the token authentication status accordingly (success, wrong credentials or no credentials given).
Details
static AuthenticationProviderInterface
create(string $name, array $options)
Factory method
protected
__construct(string $name, array $options = [])
Protected constructor, see create method
bool
canAuthenticate(TokenInterface $authenticationToken)
Returns true if the given token can be authenticated by this provider
array
getTokenClassNames()
Returns the class names of the tokens this provider can authenticate.
void
authenticate(TokenInterface $authenticationToken)
Checks the given token for validity and sets the token authentication status accordingly (success, wrong credentials or no credentials given).