• Generate a token for LDAP users in webservices

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #43312  by vinodhsatyam
 
Hi,

We have created a form in an dotnet application which on submission will trigger a jbpm workflow. We are making use of the openkm webservices to start the workflow as well as to perform all the operations related to the workflow. While making use of the api methods, we need to generate a token with the username and password to run any of the methods. We are making use of LDAP users and we are unable to pass the password of each and every user to generate the token. Could you please let us know how to generate the token for each user to make use of the workflow methods.
Example:
User1 submits the form. Task will go to User2.
User1 need to generate a token to start a workflow with his username.
User2 need to generate a token to finish the task with his username.
 #43319  by jllort
 
From what I understanding you are using SOAP webservices what requires a login token for authentication. Well there's a method in soap for getting the token, the login method. I do not understanding the problem ? In the same way you are creating the token for login, and start the workflow, the same token ( if you have not logged out, otherwise must create a new one ) can be used to execute some workflow task.
 #43323  by vinodhsatyam
 
Hi jllort,

Thank you for the reply.
We are getting the token using okmAdmin user. We only know the password of okmAdmin user as we have created that user in AD.
Any of the AD user for which we do not know the password will submit the form and initiate the workflow and always the workflow will start with okmAdmin user token. If this is the case, how we will come to know who initiated the workflow. In the workflow nodes, if there is a chance that the task should go to the initiator, everytime the task will go to okmAdmin irrespective of the user who initiated the workflow. Could you please help us how to overcome this.
 #43332  by jllort
 
Really all the workflows should be started by okmAdmin user. Here the only possibility is when you starting the workflow add a form where you should set the user.

The best scenario will be when the users are logged ( write their credentials ) and then start the workflow. But if it's not possible in your scenario at least you should save at the begining who's that user.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.