0.2.12 • Published 3 months ago

edrm-user v0.2.12

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

EDRM User mangement module

Table of Contents

Description

This module is a user, role and permission management. It provides all the login implementation including JWT to enable the endurance core auth lib to work.

Features

  • Register and login users
  • Get profile informations
  • Assign role to user
  • Manage roles and permissions

Installation

npm install edrm-user

Environment Variables

Not linked to the module but to auth lib from endurance core :

  • JWT_SECRET
  • JWT_REFRESH_SECRET

Routes

  • /user/register (POST) : Register a user
  • /user/login (POST) : Authenticate a user
  • /user/profile (GET) : Get profile information of current user
  • /user/profile (PATCH) : Update the current user profile
  • /user/profile (DELETE) : Delete the current user profile
  • /user/assign-role (POST) : Assign a role to a user
  • /role (Default Rest CRUD) : Manage roles
  • /role/:role-id/assign-permision : Assign a permission a specific role
  • /permission (Default Rest CRUD) : Manage permissions
0.2.12

3 months ago

0.2.11

3 months ago

0.2.10

4 months ago

0.2.9

4 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.1

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.2.0

10 months ago

0.1.1

10 months ago