def METHOD_NAME(self):
    """test invalid token"""
    response = self.client.post(
        reverse("authentik_providers_oauth2:token"),
        {
            "grant_type": GRANT_TYPE_CLIENT_CREDENTIALS,
            "scope": SCOPE_OPENID,
            "client_id": self.provider.client_id,
            "username": "sa",
            "password": self.token.key + "foo",
        },
    )
    self.assertEqual(response.status_code, 400)
    self.assertJSONEqual(
        response.content.decode(),
        {"error": "invalid_grant", "error_description": TokenError.errors["invalid_grant"]},
    )