FileBasedSimpleKeyProvider
class FileBasedSimpleKeyProvider extends AbstractProvider (View source)
An authentication provider that authenticates Neos\Flow\Security\Authentication\Token\PasswordToken tokens.
The passwords are stored as encrypted files in persisted data and are fetched using the file based simple key service.
The roles set in authenticateRoles will be added to the authenticated token, but will not be persisted in the database as this provider is used for situations in which no database connection might be present.
= Example =
Neos: Flow: security: authentication: providers: AdminInterfaceProvider: provider: FileBasedSimpleKeyProvider providerOptions: keyName: AdminKey authenticateRoles: ['Neos.Flow.SomeRole']
Properties
protected string | $name | from AbstractProvider | |
protected array | $options | from AbstractProvider | |
protected HashService | $hashService | ||
protected FileBasedSimpleKeyService | $fileBasedSimpleKeyService | ||
protected PolicyService | $policyService |
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.
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)
Sets isAuthenticated to true for all tokens.
protected void
validateCredentials(PasswordTokenInterface $authenticationToken)
No description