feat: add personal access tokens for service users (#2974)

* feat: add machine tokens

* fix test

* rename to pat

* fix merge and tests

* fix scopes

* fix migration version

* fix test

* Update internal/repository/user/personal_access_token.go

Co-authored-by: Fabi <[email protected]>

Co-authored-by: Fabi <[email protected]>
This commit is contained in:
Livio Amstutz
2022-02-08 09:37:28 +01:00
committed by GitHub
co-authored by Fabi
parent 3bf9adece5
commit 699fdaf68e
32 changed files with 1838 additions and 30 deletions
+1
View File
@@ -21,6 +21,7 @@ type TokenView struct {
Sequence uint64
PreferredLanguage string
RefreshTokenID string
IsPAT bool
}
type TokenSearchRequest struct {