I need to integrate a consumer application to DACS through middleware tool. The requirement is :
Login to DACS infra with certain details like : Username, ApplicationID, Position, PE etc..
Logout only when logout request is made fro consumer application.
I'm following open DACS Java API to connect to DACS Daemon and Login to DACS Infrastructure. I'm following the exactly the same step and code which is available in Tutorial 4 - Content Based Entitlements (CBE)
Here, in tutorial, the logout action is performed after CBE check :
client.login();
client.waitForCallBackEvent(5);
client.checkSubCBE();
client.waitForCallBackEvent(5);
client.logout();
Instead of that,I need to do a separate call to logout a user.
Please guide.
Pimchaya.Wongrukun
There need to be separate API call like below :
Looks like below :
1. xyz.com/dacs/getEntitlements
This API should performs upto the following :
client.login();
client.waitForCallBackEvent(5);
client.checkSubCBE();
i.e login, and check CBE.
Now, once the API gets response it will lost all the details for the current user who logged in. As the API is stateless.
2. xyz.com/dacs/{user}/logout
This should perform logout.
Now my concern here is that, while calling logout, _agent, and _handle instance required (_agent.logout(_handle);) . And logout as a separate API, we can't pass that from request.