Skip to content

Back-end service with authentication and authorization to view and edit payroll data of employees

Notifications You must be signed in to change notification settings

RuslanGren/Account-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Account-Service

Back-end service with authentication and authorization to view and edit payroll data of employees

Available features without authentication:

  1. Registration (POST /api/auth/signup), sends JSON. The first user gets the administrator role, the other user roles

There are three types of users:

  1. Administrator
  2. Accountant
  3. User
  4. Auditor

Available features with authentication for all users:

  1. Change password (POST /api/auth/changepass), sends JSON with new password

Available features with authentication for administrator:

  1. Changing the roles of other users (PUT /api/admin/user/role)
  2. Getting a list of users (GET /api/admin/user/)
  3. Deleting all users, including the administrator (DELETE /api/admin/user/)
  4. Deleting a single user (DELETE /api/admin/user/{userEmail})

Available features with authentication for Accountant:

  1. Adding salary data (POST /api/acct/payments), sends JSON with list of salary data of employees
  2. Change the salary of a specific user (PUT /api/acct/payments), sends JSON with employee data

Available features with authentication for User:

  1. Getting the salary data (GET /api/empl/payment), the query can be with the parameter (period), then the data about salarie for this period will be returned, when you make a query without the parameter, the data about all salaries will be returned

Available features with authentication for Auditor:

  1. Getting a list of logs (GET /api/security/events/)

An HTTPS connection with its own certificate is used: -genkeypair -alias accountant_service -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore keystore.p12 -validity 3650 Password 952738

The data is stored in a PostgreSQL database. Password is stored as Hash

About

Back-end service with authentication and authorization to view and edit payroll data of employees

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages