0.2.12 • Published 4 months ago

edrm-user v0.2.12

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 months ago

0.2.11

4 months ago

0.2.10

5 months ago

0.2.9

5 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.1

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.5

7 months ago

0.2.4

7 months ago

0.2.0

11 months ago

0.1.1

11 months ago