Add obsolete tokens, resolve conflicts, bump ent

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh
2021-04-30 18:31:49 +04:00
parent 24fa4def5b
commit 8553309db3
44 changed files with 766 additions and 111 deletions

View File

@@ -24,7 +24,8 @@ create table refresh_token
token text default '' not null,
created_at timestamp default '0001-01-01 00:00:00 UTC' not null,
last_used timestamp default '0001-01-01 00:00:00 UTC' not null,
claims_preferred_username text default '' not null
claims_preferred_username text default '' not null,
obsolete_token text default ''
);
*/
@@ -75,6 +76,9 @@ func (RefreshToken) Fields() []ent.Field {
field.Text("token").
SchemaType(textSchema).
Default(""),
field.Text("obsolete_token").
SchemaType(textSchema).
Default(""),
field.Time("created_at").
Default(time.Now),