Joe Chen
|
0a92ad27ef
|
db: use `context` and go-mockgen for `AccessTokensStore` (#7013)
|
2022-06-06 12:10:36 +08:00 |
E99p1ant
|
a328e7ccc4
|
access_token: encrypt access token with SHA256 (#7008)
* access_token: encrypt access token with SHA256
* revert list access token
* fix lint
* generate schemadoc
* add database migrations
* fix tests
* fix tests
* add test case for access token golden
* fix test in postgres
* `Sha256` -> `SHA256`
* Use GORM for migration
* task generate-schemadoc
* Use unique
* change migration name
* allow read
* task generate-schemadoc
* add changelog
* fix lint error
* update changelog
* remove Debug
* add comments
Co-authored-by: Joe Chen <jc@unknwon.io>
|
2022-06-05 13:34:21 +08:00 |
Joe Chen
|
4455cc1244
|
db: code tidy up for `AccessTokens` (#7006)
|
2022-06-04 13:35:42 +08:00 |
ᴜɴᴋɴᴡᴏɴ
|
519e59b577
|
db: migrate to GORM v2 (#6309)
|
2020-09-06 10:11:08 +08:00 |
ᴜɴᴋɴᴡᴏɴ
|
9bb218734c
|
db: use GORM to backup and restore non-legacy tables (#6142)
|
2020-05-04 16:25:57 +08:00 |
ᴜɴᴋɴᴡᴏɴ
|
e077ecdd9d
|
db: add tests for LFS (#6087)
* Improve DB test setup
* Discard GORM logs in non-verbose mode
* Add tests to lfs
* Fix data race
|
2020-04-11 02:56:37 +08:00 |
ᴜɴᴋɴᴡᴏɴ
|
62dda96159
|
access_token: migrate to GORM and add tests (#6086)
* access_token: migrate to GORM
* Add tests
* Fix tests
* Fix test clock
|
2020-04-11 01:25:19 +08:00 |
ᴜɴᴋɴᴡᴏɴ
|
3a5c93eeff
|
db: use gorm function to check `ErrRecordNotFound` (#6060)
|
2020-04-05 00:56:31 +08:00 |
ᴜɴᴋɴᴡᴏɴ
|
34145c990d
|
lfs: implement HTTP routes (#6035)
* Bootstrap with GORM
* Fix lint error
* Set conn max lifetime to one minute
* Fallback to use gorm v1
* Define HTTP routes
* Finish authentication
* Save token updated
* Add docstring
* Finish authorization
* serveBatch rundown
* Define types in lfsutil
* Finish Batch
* authutil
* Finish basic
* Formalize response error
* Fix lint errors
* authutil: add tests
* dbutil: add tests
* lfsutil: add tests
* strutil: add tests
* Formalize 401 response
|
2020-04-04 21:14:15 +08:00 |