You can force Thrift to use the HTTP transport method. Therefore, it will understand the SPNEGO mechanism. You just need to add the SPNEGO token to the Authorization
HTTP header.
Here is a full example using the Node.js krb5
module. We are requesting tables of a Kerberized HBase Thrift API.
var thrift = require("thrift");
var htypes = require("./gen-nodejs/hbase1_types");
var hbase = require("./gen-nodejs/Hbase");