fix thrift authentication problem