rcm / user-api
ZF2 based APIs using REST/JSON
Installs: 2 843
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 2
Open Issues: 0
Requires
- php: >=7.0
- http-interop/http-middleware: ~0.4
- psr/container: ~1.0
- psr/http-message: ~1.0
- rcm/api-lib: 0.*
- rcm/user: ~1.5
- reliv/json: ~0.1
- reliv/zf-config-factories: 3.* || 4.*
- zendframework/zend-diactoros: ~1.3
- zendframework/zendframework: 2.*
This package is auto-updated.
Last update: 2021-09-11 07:45:18 UTC
README
ZF2 based APIs using REST/JSON
REST/JSON APIs
This module exposes several APIs for user administration. The APIs are not comprehensive, but they do allow for some user and ACL management. The admin APIs require access rules to be set in order to access (@see ACL section).
For a complete list of the APIs, please see the RcmUser/config/module.config.php file, routes section. API standard return is a result object containing a code, message and the data.
Controller Plugins and View Helpers
-
rcmUserIsAllowed($resourceId, $privilege = null, $providerId = null) (plugin and helper)
-
Alias of RcmUserService::isAllowed()
-
rcmUserHasRoleBasedAccess($roleId) (plugin and helper)
-
Alias of RcmUserService::hasRoleBasedAccess()
-
rcmUserGetCurrentUser($default = null) (plugin and helper)
-
Alias of RcmUserService::getIdentity()
controller plug-in and view helper for isAllowed (rcmUserIsAllowed for plug-in and helper)
View dependencies
- AngularJs (https://angularjs.org/)
- Bootstrap (http://getbootstrap.com/)
- UI Bootstrap (http://angular-ui.github.io/bootstrap/)
Project
Company:
Copyright Reliv' International, Inc. 2015
Project homepage:
https://github.com/reliv/rcm-user-api
Project author:
James Jervis jjervis@relivinc.com https://github.com/reliv
@TODO
More REST/JSON APIs
As DevOpts I should have access to REST/JSON APIs So that I may securely perform RcmUser actions VIA web clients
Security Updates
Story: As and Auditor I can access a log of actions performed on users and roles by administrators So that I track admin user changes
- Implement logging audit trail for user creates and saves
- might create event listeners or do at the service level
- Logging of actions for security audits