mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-09 23:55:12 +00:00
feat: refresh token (#1728)
* begin refresh tokens * refresh tokens * list and revoke refresh tokens * handle remove * tests for refresh tokens * uniqueness and default expiration * rename oidc token methods * cleanup * migration version * Update internal/static/i18n/en.yaml Co-authored-by: Fabi <[email protected]> * fixes * feat: update oidc pkg for refresh tokens Co-authored-by: Fabi <[email protected]>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
CREATE TABLE auth.refresh_tokens (
|
||||
id TEXT,
|
||||
|
||||
creation_date TIMESTAMPTZ,
|
||||
change_date TIMESTAMPTZ,
|
||||
|
||||
resource_owner TEXT,
|
||||
token TEXT,
|
||||
client_id TEXT,
|
||||
user_agent_id TEXT,
|
||||
user_id TEXT,
|
||||
auth_time TIMESTAMPTZ,
|
||||
idle_expiration TIMESTAMPTZ,
|
||||
expiration TIMESTAMPTZ,
|
||||
sequence BIGINT,
|
||||
scopes TEXT ARRAY,
|
||||
audience TEXT ARRAY,
|
||||
amr TEXT ARRAY,
|
||||
|
||||
PRIMARY KEY (client_id, user_agent_id, user_id)
|
||||
);
|
||||
Reference in New Issue
Block a user