Commit Graph

81 Commits

Author SHA1 Message Date
85f8ac60e7 some changes 2025-12-21 00:00:03 +02:00
904f446447 basicly implement acl crud ops with roles and resources 2025-12-20 17:38:15 +02:00
c188b46519 gitignore add data dir 2025-12-20 17:37:34 +02:00
8e31a84b0e get some modules 2025-12-20 17:36:52 +02:00
bd06d071b2 add swagger 2025-12-20 17:36:36 +02:00
f0d7d79e0f add swagger 2025-12-20 17:36:24 +02:00
78a8e46b3e implement endpoint /roles 2025-12-19 14:27:17 +02:00
69281f3337 fmt 2025-12-19 14:27:01 +02:00
07ec64b1bb add acl service 2025-12-19 14:26:37 +02:00
cd465d42a3 add init functions 2025-12-19 14:26:28 +02:00
c0a187d461 implement basic acl operations and tests 2025-12-19 14:26:05 +02:00
5a34a445cf add acl service 2025-12-19 14:25:43 +02:00
e12b4dea12 add legacy route and new 2025-12-19 09:23:03 +02:00
beba3cfb4b comment incorrect test 2025-12-18 20:03:21 +02:00
0f966fa17e remove unused functions 2025-12-18 20:02:49 +02:00
7546d1bece fix issue with NewService and remove unused GetById/Username 2025-12-18 20:02:38 +02:00
45f4c76ff5 mod GetBy function 2025-12-18 20:01:28 +02:00
73343fd57b format 2025-12-18 19:59:57 +02:00
6c9f8bcec0 fix test 2025-12-18 19:59:49 +02:00
f65150cec3 add config to deps 2025-12-18 19:59:22 +02:00
99fd0f5776 add function what returns http.StatusNotImplemented 2025-12-18 19:59:06 +02:00
524749b329 rename called function 2025-12-18 19:58:41 +02:00
c80f7932b4 add doc 2025-12-18 19:58:29 +02:00
e2b92f8ba1 make jwt.Parse public 2025-12-18 19:58:21 +02:00
a1f6c1ffa9 add jwt config 2025-12-18 19:58:04 +02:00
7e581d99f5 create auth package 2025-12-18 19:57:51 +02:00
ad980ee600 implement work with services 2025-12-18 19:57:38 +02:00
438bed8f13 implement some auth (user) endpoints 2025-12-18 19:57:20 +02:00
e9b7f8ca17 rename 2025-12-18 19:56:56 +02:00
ae1e5600ae go mod bcrypt 2025-12-18 19:56:46 +02:00
44d39db701 git ignore add secret 2025-12-18 19:56:31 +02:00
adf61a4d1d add token config 2025-12-18 11:25:07 +02:00
97253ee9c7 add field UserID 2025-12-18 11:24:57 +02:00
4ae85c73bb remove prefix Token 2025-12-18 11:24:48 +02:00
16b6b292c6 make functions more universal 2025-12-18 11:24:34 +02:00
6f4657caff add comments 2025-12-18 10:50:08 +02:00
53761db1e0 add user crud interface in impl 2025-12-18 10:49:56 +02:00
603f007c63 gitignore add testdata/ and remove cached tokens.db 2025-12-18 10:49:35 +02:00
597000f222 add jwt creating and parsing 2025-12-18 10:48:27 +02:00
3b74f5c43d go get uuid 2025-12-18 10:47:58 +02:00
8de6a9212a add auth service to main router's deps 2025-12-18 09:48:14 +02:00
64dad6619e require jwt 2025-12-18 09:47:14 +02:00
cdde811e72 add token service, sqlite driver and test 2025-12-18 09:46:57 +02:00
8836ea2673 remove comment 2025-12-17 18:51:46 +02:00
a9da570877 add prefix api_ to packages 2025-12-17 18:45:34 +02:00
b79450ecd4 add some info 2025-12-17 18:45:23 +02:00
5011d59912 add some debug messages 2025-12-17 17:15:02 +02:00
7d1a0b82bd add panic.log to gitignore 2025-12-17 14:38:39 +02:00
eef77fa240 add some debug info 2025-12-17 14:38:13 +02:00
16cb8c7f58 change router's names to names with prefix Must, because they might panic 2025-12-17 14:32:49 +02:00