Commit Graph

33 Commits (0fae280c180db3eb294f453b9f8ed9cab6584dfd)

Author SHA1 Message Date
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 7359c259eb
Add role delete and change update
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis a0e6e4fb07
Add simple documentation generator
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 314da98c17
Add path roles/update to update a specific role
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 21995588dc
Add path to view all roles
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis f5729b65e2
Add path to get information about a role
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 3c7ed96339
Add LICENSE
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 4b4aabd3e7
Change behaviour of Access-Control-Request-Headers
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 114f660707
Add Access-Control-Request-Headers header
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 22183916c9
Add additional CORS Headers
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 530458cfcd
Return empty 204 on http OPTIONS method
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis fb61f5ba66
Add CORS handling
Set the Access-Allow-Origin-Header to * when the environment variable
ENABLE_CORS is set to true.

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 f2ca8c8ab5
Add method to get the UserID for a token
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 4c59b345a5
Fix panic on non-base64 session tokens
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 b73f41f67d
Change tcp message handling to be multithreaded
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 76921e8854
Change field permission on CreateRole to permissions
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis bd464f4954
Add method to create permissions
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 926a2d2334
Add method to create roles
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 7aded7b002
Add method to get permissions for role_ids
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis d3e4b3de4d
Add rpc server to startup
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 efc2f1cb8b
Add database connection and table creation
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago