PHP Class Neos\Flow\Tests\Unit\Security\Authentication\Provider\PersistedUsernamePasswordProviderTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$mockAccount Neos\Flow\Security\Account
$mockAccountRepository Neos\Flow\Security\AccountRepository
$mockHashService Neos\Flow\Security\Cryptography\HashService
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$mockSecurityContext Neos\Flow\Security\Context
$mockToken Neos\Flow\Security\Authentication\Token\UsernamePassword
$persistedUsernamePasswordProvider Neos\Flow\Security\Authentication\Provider\PersistedUsernamePasswordProvider

Public Methods

Method Description
authenticatingAnUnsupportedTokenThrowsAnException ( )
authenticatingAnUsernamePasswordTokenChecksIfTheGivenClearTextPasswordMatchesThePersistedHashedPassword ( )
authenticatingAnUsernamePasswordTokenFetchesAccountWithDisabledAuthorization ( )
authenticationFailsWithWrongCredentialsInAnUsernamePasswordToken ( )
canAuthenticateReturnsTrueOnlyForAnTokenThatHasTheCorrectProviderNameSet ( )
setUp ( )

Method Details

authenticatingAnUnsupportedTokenThrowsAnException() public method

authenticatingAnUsernamePasswordTokenChecksIfTheGivenClearTextPasswordMatchesThePersistedHashedPassword() public method

authenticatingAnUsernamePasswordTokenFetchesAccountWithDisabledAuthorization() public method

authenticationFailsWithWrongCredentialsInAnUsernamePasswordToken() public method

canAuthenticateReturnsTrueOnlyForAnTokenThatHasTheCorrectProviderNameSet() public method

setUp() public method

public setUp ( )

Property Details

$mockAccount protected property

protected Account,Neos\Flow\Security $mockAccount
return Neos\Flow\Security\Account

$mockAccountRepository protected property

protected AccountRepository,Neos\Flow\Security $mockAccountRepository
return Neos\Flow\Security\AccountRepository

$mockHashService protected property

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

$mockPersistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $mockPersistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$mockSecurityContext protected property

protected Context,Neos\Flow\Security $mockSecurityContext
return Neos\Flow\Security\Context

$mockToken protected property

protected UsernamePassword,Neos\Flow\Security\Authentication\Token $mockToken
return Neos\Flow\Security\Authentication\Token\UsernamePassword

$persistedUsernamePasswordProvider protected property

protected PersistedUsernamePasswordProvider,Neos\Flow\Security\Authentication\Provider $persistedUsernamePasswordProvider
return Neos\Flow\Security\Authentication\Provider\PersistedUsernamePasswordProvider