Commit Graph
70 Commits
Author SHA1 Message Date
alexey c0a187d461 implement basic acl operations and tests 2025-12-19 14:26:05 +02:00
alexey 5a34a445cf add acl service 2025-12-19 14:25:43 +02:00
alexey e12b4dea12 add legacy route and new 2025-12-19 09:23:03 +02:00
alexey beba3cfb4b comment incorrect test 2025-12-18 20:03:21 +02:00
alexey 0f966fa17e remove unused functions 2025-12-18 20:02:49 +02:00
alexey 7546d1bece fix issue with NewService and remove unused GetById/Username 2025-12-18 20:02:38 +02:00
alexey 45f4c76ff5 mod GetBy function 2025-12-18 20:01:28 +02:00
alexey 73343fd57b format 2025-12-18 19:59:57 +02:00
alexey 6c9f8bcec0 fix test 2025-12-18 19:59:49 +02:00
alexey f65150cec3 add config to deps 2025-12-18 19:59:22 +02:00
alexey 99fd0f5776 add function what returns http.StatusNotImplemented 2025-12-18 19:59:06 +02:00
alexey 524749b329 rename called function 2025-12-18 19:58:41 +02:00
alexey c80f7932b4 add doc 2025-12-18 19:58:29 +02:00
alexey e2b92f8ba1 make jwt.Parse public 2025-12-18 19:58:21 +02:00
alexey a1f6c1ffa9 add jwt config 2025-12-18 19:58:04 +02:00
alexey 7e581d99f5 create auth package 2025-12-18 19:57:51 +02:00
alexey ad980ee600 implement work with services 2025-12-18 19:57:38 +02:00
alexey 438bed8f13 implement some auth (user) endpoints 2025-12-18 19:57:20 +02:00
alexey e9b7f8ca17 rename 2025-12-18 19:56:56 +02:00
alexey ae1e5600ae go mod bcrypt 2025-12-18 19:56:46 +02:00
alexey 44d39db701 git ignore add secret 2025-12-18 19:56:31 +02:00
alexey adf61a4d1d add token config 2025-12-18 11:25:07 +02:00
alexey 97253ee9c7 add field UserID 2025-12-18 11:24:57 +02:00
alexey 4ae85c73bb remove prefix Token 2025-12-18 11:24:48 +02:00
alexey 16b6b292c6 make functions more universal 2025-12-18 11:24:34 +02:00
alexey 6f4657caff add comments 2025-12-18 10:50:08 +02:00
alexey 53761db1e0 add user crud interface in impl 2025-12-18 10:49:56 +02:00
alexey 603f007c63 gitignore add testdata/ and remove cached tokens.db 2025-12-18 10:49:35 +02:00
alexey 597000f222 add jwt creating and parsing 2025-12-18 10:48:27 +02:00
alexey 3b74f5c43d go get uuid 2025-12-18 10:47:58 +02:00
alexey 8de6a9212a add auth service to main router's deps 2025-12-18 09:48:14 +02:00
alexey 64dad6619e require jwt 2025-12-18 09:47:14 +02:00
alexey cdde811e72 add token service, sqlite driver and test 2025-12-18 09:46:57 +02:00
alexey 8836ea2673 remove comment 2025-12-17 18:51:46 +02:00
alexey a9da570877 add prefix api_ to packages 2025-12-17 18:45:34 +02:00
alexey b79450ecd4 add some info 2025-12-17 18:45:23 +02:00
alexey 5011d59912 add some debug messages 2025-12-17 17:15:02 +02:00
alexey 7d1a0b82bd add panic.log to gitignore 2025-12-17 14:38:39 +02:00
alexey eef77fa240 add some debug info 2025-12-17 14:38:13 +02:00
alexey 16cb8c7f58 change router's names to names with prefix Must, because they might panic 2025-12-17 14:32:49 +02:00
alexey 8896188ec4 add sending of additional information to disk during a panic, changed the name of the called routing method 2025-12-17 14:31:35 +02:00
alexey d6859d8cf9 fmt 2025-12-17 14:24:29 +02:00
alexey 99ffa05c61 add doc 2025-12-17 14:24:19 +02:00
alexey c6d5fa02d1 add base for auth package 2025-12-17 14:24:07 +02:00
alexey b92682177c back to "old" way to parse url because it dont work with more than 2 "/" 2025-12-17 14:22:40 +02:00
alexey 4be8faaa67 change error status 2025-12-17 14:15:24 +02:00
alexey e78fd22f51 add message for disabled static 2025-12-17 14:15:09 +02:00
alexey 7a189d56ea add auth api router, change block api router, fix ussue with "*" 2025-12-17 14:12:29 +02:00
alexey 441253351d use modern way to parse URL 2025-12-17 14:10:40 +02:00
alexey ffec908ca4 isolate handlers 2025-12-17 14:10:16 +02:00
alexey 26052db142 add package header documentation 2025-12-17 13:49:04 +02:00
alexey cda0edfde2 block logic 2025-12-17 11:09:54 +02:00
alexey d78a6bedd5 add blocks 2025-12-17 10:14:13 +02:00
alexey 18a31be0b1 some changes 2025-12-14 16:34:42 +02:00
alexey 6aae5f9fb0 add function handling (basic) 2025-11-30 15:28:30 +02:00
alexey c1e5fc90ee some changes 2025-11-30 12:50:38 +02:00
alexey 004bb7ef7f fix log message and add force kill 2025-11-30 11:32:34 +02:00
alexey 847c5a2d08 gitignore 2025-11-30 11:26:50 +02:00
alexey ea7358a35f add reloading and stopping from tsctl 2025-11-30 11:26:22 +02:00
alexey c51dfce9ec add os.Exit(0) 2025-11-30 11:25:39 +02:00
alexey 04718759c4 delete println 2025-11-30 10:13:08 +02:00
alexey 96f67941ce stop fix 2025-11-30 10:11:46 +02:00
alexey 44e92bcfef server with basic hot reload 2025-11-30 10:09:53 +02:00
alexey f1ed3c977a add project first skeleton 2025-11-28 20:12:45 +02:00
alexey 9d8918558d go mod 2025-11-28 20:12:25 +02:00
alexey b0b1ece084 add test config.yaml 2025-11-28 20:12:19 +02:00
alexey 39652e60ab test 2025-11-23 11:03:47 +02:00
alexey 1aa63c531a add Makefile 2025-11-23 11:03:41 +02:00
alexey 3a4075d038 add .gitignore 2025-11-23 11:03:34 +02:00
alexey 7f6cc5910a 2025-11-23 10:56:59 +02:00