SOAJS URAC is a service that manages all users accounts for all tenants.
This service is also equipped with an optional mail notification system that is configurable.
The URAC offers the ability to override the service access level as well as configuration for specific users.
The service is Multitenant and provides the:
- ability for administrators to control user accounts, groups and access levels.
- ability to update profile and preferences for logged in members.
- ability to register and login for anonymous users.
##Installation
$ npm install soajs.urac
$ cd soajs.urac
$ node.
##Features Once Installed and running, the URAC service offers different APIs to manage users:
Public APIs:
Login
$ CURL -X POST http://localhost:4000/urac/login -d 'username=john&password=johnpassword'
Logout
$ CURL -X GET http://localhost:4000/urac/logout -d 'username=john'
Forgot Password
$ CURL -X GET http://localhost:4000/urac/forgotPassword -d 'username=john&email=johndoe@domain.com'
Register
$ CURL -X POST http://localhost:4000/urac/join -d 'username=john&password=johnpassword&firstName=John&lastName=Doe&email=johndoe@domain.com'
Members APIs:
Edit Profile
$ CURL -X POST http://localhost:4000/urac/account/editProfile -d 'uId=123&username=john&firstName=John&lastName=Doe&profile={'gender':'male'}'
Change Password
$ CURL -X POST http://localhost:4000/urac/account/changePassword -d 'uId=123&oldPassword=johnoldpassword&password=johnpassword&confirmation=johnpassword'
Change Email
$ CURL -X POST http://localhost:4000/urac/account/changeEmail -d 'uId=123&email=newemail@domain.com'
Administrator APIs:
List Users
$ CURL -X GET http://localhost:4000/urac/admin/listUsers
Add User
$ CURL -X POST http://localhost:4000/urac/admin/addUser -d 'username=john&firstName=John&lastName=Doe&email=johndoe@domain.com'
Edit User
$ CURL -X POST http://localhost:4000/urac/admin/editUser -d 'uId=123&username=john&firstName=John&lastName=Doe&email=johndoe@domain.com&status=active'
Change User Status
$ CURL -X GET http://localhost:4000/urac/admin/changeUserStatus -d 'uId=123&status=active'
##Templates The URAC is also equipped with templates used by SOAJS notification system. These templates are configurable, can be themed and are rendered using SWIG and contain data from URAC service.
Templates are located in the registry of SOAJS.
More information is available on SOAJS website section for URAC.