i need intercept specific request coming node server , introduce kerberos authentication right there.
suppose if request comes /names/ ,i need first kerberos authenticate , if authenticated successfully, proceed fulfill request.
i have 1 .keytab file in knowledge has principals , encrypted keys need authentication.
question: how can read .keytab encrypted file on node js? have looked node packages node-krb5 , node-passport couldn't find way read keytab files
please assist if done similar. thanks.
you should @ node passport-negotiate module implements server side kerberos ticket authentication checking. there's sample "login" app in module demonstrates how use module, , if @ strategy.js should see how use underlying kerberos support, should want bypass passport , authentication directly.
the actual server-side kerberos functionality part of npm kerberos module.