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 <38692350+fgerschwiler@users.noreply.github.com>

Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
This commit is contained in:
Livio Amstutz
2022-02-08 09:37:28 +01:00
committed by GitHub
parent 3bf9adece5
commit 699fdaf68e
32 changed files with 1838 additions and 30 deletions

View File

@@ -66,8 +66,11 @@ Errors:
Machine:
Key:
NotFound: Maschinen Key nicht gefunden
PAT:
NotFound: Persönliches Access Token nicht gefunden
NotHuman: Der Benutzer muss eine Person sein
NotMachine: Der Benutzer muss technisch sein
WrongType: Für diesen Benutzertyp nicht erlaubt
NotAllowedToLink: Der Benutzer darf nicht mit einem externen Login Provider verlinkt werden
Username:
AlreadyExists: Benutzername ist bereits vergeben

View File

@@ -66,8 +66,11 @@ Errors:
Machine:
Key:
NotFound: Machine key not found
PAT:
NotFound: Personal Access Token not found
NotHuman: The User must be personal
NotMachine: The User must be technical
WrongType: Not allowed for this user type
NotAllowedToLink: User is not allowed to link with external login provider
Username:
AlreadyExists: Username already taken

View File

@@ -66,8 +66,11 @@ Errors:
Machine:
Key:
NotFound: Machine Key non trovato
PAT:
NotFound: Personal Access Token non trovato
NotHuman: L'utente deve essere personale
NotMachine: L'utente deve essere tecnico
WrongType: Non consentito per questo tipo di utente
NotAllowedToLink: L'utente non è autorizzato a collegarsi con un provider di accesso esterno
Username:
AlreadyExists: Nome utente già preso