Page 1 of 1

Web-hosted SDK fails to login using SPS-auth'd user

Posted: Fri Sep 23, 2022 3:59 pm
by toddsou
Hi-

I've built a web svc which refs the SDK libs. Upon trying to call the typical TryAuthenticate(...) method, it fails, but only if I login with a user defined via SPS-authentication scheme. Logging in via a user with a Windows/domain-authentication scheme works fine.

Here is some information captured in the debugger's Output window:

iisexpress.exe Warning: 0 : The token provider cannot get tokens for target 'http://192.168.66.121:8080/Security/v1/ ... 64948a9984'.
SOAP security negotiation with 'http://192.168.66.121:8080/Integration/ ... 64948a9984' for target 'http://192.168.66.121:8080/Integration/ ... 64948a9984' failed. See inner exception for more details.
exePath must be specified when not running inside a stand alone exe.

iisexpress.exe Information: 0 : Failed to authenticate the current user. The token provider cannot get tokens for target 'http://192.168.66.121:8080/Security/v1/ ... 64948a9984'.
The program '[51424] iisexpress.exe' has exited with code 4294967295 (0xffffffff).

In particular, the message "exePath must be specified when not running inside a stand alone exe." smells like a smoking gun to me. A 10s google search led me to some posts about enabling AspNetCompatibility for WCF-related comms, which I did, but to no avail.

My code is pretty typical, but I'm happy to share it, if needed.

Guidance appreciated.
Thanks.

Re: Web-hosted SDK fails to login using SPS-auth'd user

Posted: Fri Sep 30, 2022 11:29 am
by BobRichards
The customer resolved this issue by using the server PIN.