2.5.9 • Published 5 years ago

miracle.urac v2.5.9

Weekly downloads
11
License
(c) Copyright 201...
Repository
-
Last release
5 years ago

miracle.urac

Build Status Coverage Status Known Vulnerabilities

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