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']
Inheritance: extends AbstractProvider
显示文件 Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$fileBasedSimpleKeyService Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService
$hashService Neos\Flow\Security\Cryptography\HashService
$policyService Neos\Flow\Security\Policy\PolicyService

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.
public getTokenClassNames ( ) : array
return array

Property Details

$fileBasedSimpleKeyService protected_oe property

protected FileBasedSimpleKeyService,Neos\Flow\Security\Cryptography $fileBasedSimpleKeyService
return Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService

$hashService protected_oe property

protected HashService,Neos\Flow\Security\Cryptography $hashService
return Neos\Flow\Security\Cryptography\HashService

$policyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy $policyService
return Neos\Flow\Security\Policy\PolicyService