Use current loged user to authenticate client Ajax call
We are trying to implement a client side data provider as a component (ZEN) that will use JQuery to do rest calls to a desired URL, in this case, a %CSP.Rest service implemented by ourselves.
This component will be used within our application that is authenticated with a correct user configured on Caché management portal and therefore using one license unit. As we are using a Ajax call from client side this connection creates a new session that will use a new license.
We are using ZAUTHENTICATE routine to manage the session authentication for new REST connections but we couldn't get the "caller" user session to be used again (adding more connections to the license slot)
How can we authenticate the new connection with the same user that is currently log in the application?