We have 2 web servers to host the App, launcher and runtime and we have 2 different servers to host the PowerServer Web API. In the 2 web servers we setup IIS to work as a load balancer to redirect the calls to the API servers. Everything is working until two weeks ago, we were asked to add extra security to the 2 Web Servers, so only authenticate users can access and see these servers. We, try to implement first windows authentication but APPEON support team already told us that the cloudlauncher do not work with this type of authentication. So, we move to the cookie's authentication. I setup in IIS the forms authentication to redirect the calls to a Loging page, and after the user enter their credentials, we are able to catch the cookie and pass it to the cloudlauncher. But right now, it looks like the application itself is returning an error when it's trying to connect to the PowerServer API.
In the application we are starting the session manually because we have the JWT Auth enable. and we have this code:
//StartSession
long ll_return
Try
ll_return = Beginsession()
If ll_return <> 0 Then
Messagebox("Beginsession Failed:" + String(ll_return), GetHttpResponseStatusText())
End if
Catch ( Throwable ex)
MessageBox( "Throwable", ex.GetMessage())
Halt
End Try
And this is the error we are getting:
Any help will be very much appreciated.