I am using Cuba Rest services to build ionic 2 angular 2 app. Using Cuba rest services was a breeze.
However, I am a little stuck.
In this mobile app, there are options under settings to change profile details, password etc. I would like to use oauth token to update firstname, middle name, last name, password, email address, role, access group etc. However, there is no rest api to do so.
I am referring doc below.
I can perform GET to read userInfo but I am not allowed to perform PUT and POST, which is correct. http://files.cuba-platform.com/swagger/#/UserInfo
I tried using entity sec$User. However, it requires oauth token of admin to perform CRUD.
What I am looking for is that the user should be able to update his own information ( firstname, middle name, last name, password, email address, role, access group etc.)
One work around is to use to admin (admin having role to perform create, update and delete users) oath within the mobile app whenever user information is needs to updated. Is there a simpler and direct way to achieve the same?