Page 1 of 1

How to Create API User

PostPosted:Fri Apr 21, 2017 7:06 pm
by kstjohn
New user here - Professional 6.3.3
I have been searching through the docs for the procedure to setup an API user but can't seem to find any information. Normally I would generate an API key and pass this along to the user along with a username and password. But I find nothing on creating a key or user.

I would appreciate someone explaining this to me as I suspect OKM has its own procedure. Thanks in advance!

Re: How to Create API User

PostPosted:Sat Apr 22, 2017 9:46 am
by jllort
If you are looking for API user creation should take a look here https://docs.openkm.com/kcenter/view/ok ... createUser.
In case you are looking for Webservices, tell us again.

Re: How to Create API User

PostPosted:Sat Apr 22, 2017 12:39 pm
by kstjohn
Perhaps I am not making myself clear.

In applications I have used before, only an authorized API user can use API to access the application. The security procedure usually involves giving the API user a username, password, and an API security key such as "b9736924bb974e2c8450". He must use this information to login first before the system allows him to use the API methods.

Normally there is a method for the administrator to generate this security key so he can provide it to the API user along with his username and password.

I can find no details on the method to generate a security key or an API method for the API user to login with. Perhaps this is not necessary with OKM?

Re: How to Create API User

PostPosted:Sat Apr 22, 2017 8:16 pm
by jllort
Use a token ( security key ) has been a common way to get authorization to webservices ( specially in the last years ), but not the only. 3-5 years ago we set "Basic authentication" for accessing webservices ( I'm talking about REST implementation ), as you can see if you accessing directly to the webservices resources will require you to set user name and password for each remote process call. OpenKM SOAP webservices works with token, but not REST ( there we have a login method what returns token and also a logout one ). Anyway we do not suggest use SOAP we only maintaining for .

At the present we have still not changed to token solution. That not means be wrong implementation, simply it's another way to solve authentication process. Actually we are working in CAS authentication what requires token, that mean we are working on moving it in professional edition. If you want to collaborate in changing in community version you are welcome.

Re: How to Create API User

PostPosted:Tue Jul 11, 2017 5:08 am
by Gopal
jllort wrote: Sat Apr 22, 2017 9:46 am If you are looking for API user creation should take a look here https://docs.openkm.com/kcenter/view/ok ... createUser.
In case you are looking for Webservices, tell us again.
Hi jllort
I am looking for web service to create new user in Open KM through .net .
Please help me , i need it urgent
Thanks

Re: How to Create API User

PostPosted:Wed Jul 12, 2017 3:56 pm
by jllort
As you can see in this class https://github.com/openkm/document-mana ... rvice.java OpenKM 6.3.4 comes with rest methods for creating a user. Unfortunately these methods have still not being propaged into the SDK's that means you need accessing directly to them.