miracle.urac
v2.5.9
Published
miracle URAC service
Downloads
2
Readme
miracle.urac
Miracle 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 miracle.urac
$ cd miracle.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 protected]'
Register
$ CURL -X POST http://localhost:4000/urac/join -d 'username=john&password=johnpassword&firstName=John&lastName=Doe&[email protected]'
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 protected]'
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 protected]'
Edit User
$ CURL -X POST http://localhost:4000/urac/admin/editUser -d 'uId=123&username=john&firstName=John&lastName=Doe&[email protected]&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 Miracle 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 Miracle.
More information is available on Miracle website section for URAC.