Keep track of issuer and creation date in tokens.

This commit is contained in:
Juliusz Chroboczek
2023-04-08 21:13:35 +02:00
parent c501b76d2b
commit 8775ce6406
4 changed files with 50 additions and 18 deletions
+2
View File
@@ -19,6 +19,8 @@ type Stateful struct {
Permissions []string `json:"permissions"`
Expires *time.Time `json:"expires"`
NotBefore *time.Time `json:"not-before,omitempty"`
IssuedAt *time.Time `json:"issuedAt,omitempty"`
IssuedBy *string `json:"issuedBy,omitempty"`
}
func (token *Stateful) Clone() *Stateful {