Commit Graph

14 Commits

Author SHA1 Message Date
Michael Bumann
236427b8e2 Use Echo logger 2022-01-17 10:22:02 +01:00
Michael Bumann
dd01815327 Limit for user find 2022-01-17 10:19:41 +01:00
Michael Bumann
06410ec1de Use custom JWT claims and fix expiry 2022-01-17 07:48:46 +01:00
Roman Useinov
c5170a0a1e fix expiry and validate claims 2022-01-16 16:02:37 +00:00
Roman Useinov
e22c51f9f9 use DefaultConfig as base for JWT 2022-01-16 14:14:53 +00:00
Roman Useinov
e7e5904829 UserMiddleware added 2022-01-16 14:02:58 +00:00
Roman Useinov
6c6e647cb6 fix naming after rebase 2022-01-16 13:27:16 +00:00
Michael Bumann
1b347c5177 Move JWT middleware config to tokens and load UserId into the context 2022-01-16 13:26:42 +00:00
Michael Bumann
b1dd3012fd Remove sensitive data from JWT and add expiry 2022-01-16 13:26:42 +00:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00
Viktor Patchev
1ee2bdb909 Change folder structure 2022-01-10 21:15:30 +01:00
Viktor Patchev
76cc532079 NullString fixes 2022-01-09 15:47:45 +01:00
Michael Bumann
2223ef41d9 User model updates
also use sql.NullString to set access/refresh token
2022-01-08 18:03:06 +01:00
Viktor Patchev
47d8b70429 Add tokens in separate directory 2022-01-08 12:14:52 +01:00