mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-20 03:48:47 +00:00
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:
@@ -0,0 +1,14 @@
|
||||
ALTER TABLE auth.tokens ADD COLUMN is_pat BOOLEAN DEFAULT false NOT NULL;
|
||||
|
||||
CREATE TABLE zitadel.projections.personal_access_tokens (
|
||||
id STRING
|
||||
, creation_date TIMESTAMPTZ NOT NULL
|
||||
, change_date TIMESTAMPTZ NOT NULL
|
||||
, resource_owner STRING NOT NULL
|
||||
, sequence INT8 NOT NULL
|
||||
, user_id STRING NOT NULL
|
||||
, expiration TIMESTAMPTZ NOT NULL
|
||||
, scopes STRING[]
|
||||
|
||||
, PRIMARY KEY (id)
|
||||
);
|
||||
Reference in New Issue
Block a user