jlguenego / node-expose-sspi

Expose Microsoft Windows SSPI to Node for SSO authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client is silently failing at line 209

visgotti opened this issue · comments

const clientCred = sspi.AcquireCredentialsHandle(credInput);

When I'm debugging, this line triggers my node program to terminate with an error but does not give any error message.

I'm trying to authenticate a node app, I'm following the example pretty much to a T.

I do not have an issue when trying to hit endpoints in my browser, but from a node cli I am struggling.

When I log out credInput, it is


{
    packageName: 'Negotiate',
   credentialUse: 'SECPKG_CRED_OUTBOUND'
}

Needed to upgrade my node version- non issue.

added a control on node version for a better error checking. I hope nobody will throw again this kind of issue ;)
This is to improve the dev experience.