Generate a token for LDAP users in webservices

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.
Post Reply
vinodhsatyam
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Tue Oct 04, 2016 11:31 am

Generate a token for LDAP users in webservices

Post by vinodhsatyam » Tue Feb 28, 2017 3:07 pm

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.

jllort
Moderator
Moderator
Posts: 9643
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Generate a token for LDAP users in webservices

Post by jllort » Wed Mar 01, 2017 7:15 pm

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.

vinodhsatyam
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Tue Oct 04, 2016 11:31 am

Re: Generate a token for LDAP users in webservices

Post by vinodhsatyam » Thu Mar 02, 2017 1:43 pm

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.

jllort
Moderator
Moderator
Posts: 9643
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Generate a token for LDAP users in webservices

Post by jllort » Fri Mar 03, 2017 7:33 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests