Commit Graph

49 Commits (ebf1b9735134ef79a1a437b75c748416b17bd0ea)
 

Author SHA1 Message Date
trivernis ebf1b97351
Remove msgrpc submodule
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 0d7223c4f6
Update msgrpc dependency
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 3c7ed96339
Add LICENSE
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
leonnicolas 1e4d676daa
.travis.yml: try to load msg-rpc 4 years ago
leonnicolas 404dc64c39
.travis.yml: try to load msg-rpc 4 years ago
leonnicolas 6cfbd0239c
.travis.yml: try to load msg-rpc 4 years ago
leonnicolas 34e88e4004
.travis.yml: try to load msg-rpc 4 years ago
leonnicolas 34071fe27c
.travis.yml: try to load msg-rpc 4 years ago
leonnicolas 3eb9c050f3
.travis.yml: try to load msg-rpc 4 years ago
leonnicolas 6a7858fd7b
.travis.yml: github sign in 4 years ago
leonnicolas a77460de6a
.travis.yml: added travis file. 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 a0889e2a0c
Merge pull request #1 from flotte-goes-smart/multistage-docker
Dockerfile: multistage docker image
4 years ago
leonnicolas 4d7662acd4
Dockerfile: multistage docker image 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 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 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 04de5a4e4f
Change permission creation to return permissions even if they exist
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 f86fa86f3e
Merge branch 'main' of github.com:flotte-goes-smart/flotte-user-management into main 4 years ago
trivernis cee9e3c030
Add Dockerfile
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
Trivernis afa8b2b1be
Create README.md 4 years ago
trivernis 3a1e965b98
Fix SessionTokens not leaving old entry behind on refresh
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 396cf744bb
Remove .env
Why was .env even in the repository?

Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis dbc1e7780f
Remove .idea (!)
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
trivernis 8b19542a59
Add msgrpc submodule
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago