public function checkSecret($secret)
    {
        if (in_array(OAuth2::GRANT_TYPE_CLIENT_CREDENTIALS, $this->getAllowedGrantTypes())) {
            return array(
                'scope' => 'API_USER'
            );
        }

        return (null === $this->secret || $secret === $this->secret);
    }