Add thrift login suppoer.