PHP Class Neos\Flow\Security\Authentication\Provider\FileBasedSimpleKeyProvider
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: ['TYPO3.Flow.SomeRole']
Show file
Open project: neos/flow-development-collection
Class Usage Examples
Protected Properties
Public Methods
Method |
Description |
|
authenticate ( Neos\Flow\Security\Authentication\TokenInterface $authenticationToken ) : void |
Sets isAuthenticated to TRUE for all tokens. |
|
getTokenClassNames ( ) : array |
Returns the class names of the tokens this provider can authenticate. |
|
Method Details
authenticate()
public method
Sets isAuthenticated to TRUE for all tokens.
public authenticate ( Neos\Flow\Security\Authentication\TokenInterface $authenticationToken ) : void |
$authenticationToken |
Neos\Flow\Security\Authentication\TokenInterface |
The token to be authenticated |
return |
void |
|
getTokenClassNames()
public method
Returns the class names of the tokens this provider can authenticate.
Property Details
$fileBasedSimpleKeyService protected property
protected FileBasedSimpleKeyService,Neos\Flow\Security\Cryptography $fileBasedSimpleKeyService |
return |
Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService |
|
$hashService protected property
protected HashService,Neos\Flow\Security\Cryptography $hashService |
return |
Neos\Flow\Security\Cryptography\HashService |
|
$policyService protected property
protected PolicyService,Neos\Flow\Security\Policy $policyService |
return |
Neos\Flow\Security\Policy\PolicyService |
|