Rectangle 27 0

WSO2 API Manager User Management APIs?


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="
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.

Is there a way to customize the additional fields? What are the differences between these REST APIs and the APIs sent by Corso?

It is possible to customize fields. But in API Manager we don't ship claim management features. If you check this in WSO2 Identity Server, there you can see in Configure->Claim Management, you have the ability to mange cliam dialects by adding new claims, changing order, etc. The claim dialect used in Sign up is wso2.org/claims. So if you want to do this for API Manager either u need to install claim management feature or go to database level and manually change claims in UM_CLAIM table.

What you meant by additional fields? Did you mean the user claims? Underline the Store APIs I have pointed, the same web service APIs available in carbon are invoked. The store APIs makes it easier because it adds required roles (subscriber role) to the new users, in order to login afterwards.

Yes that should work. But the problem is for latest API Manager versions there is no compatible claim management features available. So you may have to wait for next release. As a workaround you can use Identity Server sepereately and point its user store to the same user store which api manger points (configured in user-mgt.xml). Then after starting Identity server you can do the claim mangement there. Since both are sharing the same user store those same claims will appear in api manager store as well.

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

Note
Rectangle 27 0

WSO2 API Manager User Management APIs?


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):

I need also to set custom fields value that are not provided by the standard Store API, I'll probably need to dig more into the blog.facilelogin.com article because I see that they set there custom properties.

I'd say it should work with all wso2 products, since they share the same wso2 carbon base, acting as some general purpose middleware server. Carbon is able to expose web services for several server management functions, such as user management, shared among all products. This other answer seems to be specific to the API manager store app, could be enough to suit your needs for this use case.

The second link refers to WSO2 Identity Server: does this work with WSO2 API Manager as well?

Note