trivernis
26c8e38c86
Add method to delete users
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
047ead2fd7
Add method to create users and fix user update
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
fee0f1e1aa
Add method to get all users and change /users/* method
...
The method /user/* method now returns the full informatio for a user
that also includes the roles of the user.
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
7f274b82ab
Add method to get information for a single user
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
0fae280c18
Change require user input
...
The input now requires the password of the person changing the record.
All other fields are now optiona.
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
81ae1a5c3e
Add update user method
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
7f4e89caf2
Add copyright comments
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
04a0767e24
Add roles/create REST method
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
d1224bb767
Add REST endpoint to log out
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
11e725d302
Add some comments and fix some style issues
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
eb25371670
Change admin role and user handling
...
Change the handling of the default admin role and the default admin user
to be assigned roles based on their names instead of their id.
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
5affe0e93e
Switch to Mutex from parking_lot to avoid poisoning
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
94ae69ec60
Switch to pooled postgres client
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
3a2ea2a03d
Improve logging output format
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
9ad9379381
Remove redis dependencies
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
88d4c3966b
Add method to refresh a request token
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
5e77c77559
Add login route
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
a6119b04bf
Add getRoles method and return ttl for tokens
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
31f99d77fb
Add token functions (create, refresh, validate)
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
c189b4bef9
Add function to create a user
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
f571f062fa
Add redis connection to all models
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
8890c048f0
Add data models
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
efc2f1cb8b
Add database connection and table creation
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago