1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 00:25:58 +01:00

Omit token expiration if not provided.

A token with empty expiration is useless anyway.
This commit is contained in:
Juliusz Chroboczek 2024-10-25 17:49:00 +02:00
parent bdee6286e6
commit 54b4759300

View file

@ -20,7 +20,7 @@ type Stateful struct {
Group string `json:"group"` Group string `json:"group"`
Username *string `json:"username,omitempty"` Username *string `json:"username,omitempty"`
Permissions []string `json:"permissions"` Permissions []string `json:"permissions"`
Expires *time.Time `json:"expires"` Expires *time.Time `json:"expires,omitempty"`
NotBefore *time.Time `json:"not-before,omitempty"` NotBefore *time.Time `json:"not-before,omitempty"`
IssuedAt *time.Time `json:"issuedAt,omitempty"` IssuedAt *time.Time `json:"issuedAt,omitempty"`
IssuedBy *string `json:"issuedBy,omitempty"` IssuedBy *string `json:"issuedBy,omitempty"`