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
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$fileBasedSimpleKeyService Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService
$hashService Neos\Flow\Security\Cryptography\HashService
$policyService Neos\Flow\Security\Policy\PolicyService

Méthodes publiques

Méthode 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 méthode

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
Résultat void

getTokenClassNames() public méthode

Returns the class names of the tokens this provider can authenticate.
public getTokenClassNames ( ) : array
Résultat array

Property Details

$fileBasedSimpleKeyService protected_oe property

protected FileBasedSimpleKeyService,Neos\Flow\Security\Cryptography $fileBasedSimpleKeyService
Résultat Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService

$hashService protected_oe property

protected HashService,Neos\Flow\Security\Cryptography $hashService
Résultat Neos\Flow\Security\Cryptography\HashService

$policyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy $policyService
Résultat Neos\Flow\Security\Policy\PolicyService