0
votes

Does the WSO2 API Manager provide APIs for user registration and management?

To be more specific, the documentation states that the user can sign up using the store interface. Is there also an equivalent API that I can use to:

  • register new users
  • to authentication existing users
  • to initiate password recoveries

Please add the wso2am tag to this question (see related comment).

2
I see that the tag wso2apimanager is getting added and removed many times. IMO a new tag wso2am should be added to this question (this tag would match existing tags such as wso2is, wso2esb, wso2dss). And there are dozens of questions that would make good use of this tag: stackoverflow.com/search?q=wso2+api+manager (I can't create this tag because 1k rep is needed). -- I am adding a request for tagging on behalf of meta.stackexchange.com/questions/94281/… - David Riccitelli

2 Answers

3
votes

Apart from managing users through the product's Management Console, every carbon server also exposes its management services as web services.

As far as user management is concerned, you can find API samples at the following links (note that these might be specific to work on a particular carbon version):

https://svn.wso2.org/repos/wso2/people/asela/wso2-samples/user-manager/user-admin-client/ http://blog.facilelogin.com/2010/05/managing-users-and-roles-with-wso2.html

3
votes

Yes, API Store has an exposed API which can be used to register new users (User Signup) and authenticate users (Login).

SignUp

curl -X POST -b cookies http://localhost:9763/store/site/blocks/user/sign-up/ajax/user-add.jag -d "action=addUser&username=user2&password=xxx&allFieldsValues="

(Above allFieldsValues will be | seperated values for user fields, firstname, lastname, email, etc. ex :allFieldsValues=lakmali|erandi|[email protected])

Login

curl -X POST -c cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d 'action=login&username=user1&password=xxx'

But password recovery functionality is not available yet. It will be avilable in future releases.