public function authenticate(TokenInterface $authenticationToken)
    {
        if (!($authenticationToken instanceof PasswordToken)) {
            throw new UnsupportedAuthenticationTokenException('This provider cannot authenticate the given token.', 1217339840);
        }

        $credentials = $authenticationToken->getCredentials();
        if (is_array($credentials) && isset($credentials['password'])) {
            $this->validateCredentials($authenticationToken, $credentials);
            return;
        }

        if ($authenticationToken->getAuthenticationStatus() !== TokenInterface::AUTHENTICATION_SUCCESSFUL) {
            $authenticationToken->setAuthenticationStatus(TokenInterface::NO_CREDENTIALS_GIVEN);
        }
    }
public function authenticate(TokenInterface $authenticationToken)
    {
        if (!($authenticationToken instanceof PasswordToken)) {
            throw new UnsupportedAuthenticationTokenException('This provider cannot authenticate the given token.', 1217339840);
        }

        $credentials = $authenticationToken->getCredentials();
        if (is_array($credentials) && isset($credentials['password'])) {
            $this->validateCredentials($authenticationToken, $credentials);
            return;
        }

        if ($authenticationToken->getAuthenticationStatus() !== TokenInterface::AUTHENTICATION_SUCCESSFUL) {
            $authenticationToken->setAuthenticationStatus(TokenInterface::NO_CREDENTIALS_GIVEN);
        }
    }
public function authenticate ( TokenInterface $ authenticationToken ) { if ( ! ( $ authenticationToken instanceof PasswordToken ) ) { throw new UnsupportedAuthenticationTokenException ( 'This provider cannot authenticate the given token.' , 1217339840 ) ; } $ credentials = $ authenticationToken -> getCredentials ( ) ; if ( is_array ( $ credentials ) && isset ( $ credentials [ 'password' ] ) ) { $ this -> validateCredentials ( $ authenticationToken , $ credentials ) ; return ; } if ( $ authenticationToken -> getAuthenticationStatus ( ) !== TokenInterface :: AUTHENTICATION_SUCCESSFUL ) { $ authenticationToken -> setAuthenticationStatus ( TokenInterface :: NO_CREDENTIALS_GIVEN ) ; } }
Sets isAuthenticated to true for all tokens.

@param TokenInterface $authenticationToken The token to be authenticated
@return void
@throws UnsupportedAuthenticationTokenException
@throws \Neos\Flow\Security\Exception
@throws \Neos\Flow\Security\Exception\InvalidAuthenticationStatusException
Sets isAuthenticated to true for all tokens .