Da-Bulgaria / e-prescriptions

Система за електронни рецепти
Apache License 2.0
2 stars 1 forks source link

Authentication #2

Closed Glamdring closed 4 years ago

Glamdring commented 4 years ago

Setup user authentication using spring security and JWT. Use scrypt for storing passwords.

The JWT should contain the following claims: userId, sha512(user.getEmail() + user.isTwoFactorAuthEnabled() +user.getPassword())

The JWT Signature key should be stored in the properties file for now

JWT should be obtained in two ways: