Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
public setAuthenticationStatus ( integer $authenticationStatus ) : void | ||
$authenticationStatus | integer | One of NO_CREDENTIALS_GIVEN, WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL, AUTHENTICATION_NEEDED |
return | void |
/** * @test * @expectedException \Neos\Flow\Security\Exception\InvalidAuthenticationStatusException */ public function setAuthenticationStatusThrowsAnExceptionForAnInvalidStatus() { $this->token->setAuthenticationStatus(-1); }