2022-02-23 20:02:02 +01:00
|
|
|
package jwtclaims
|
|
|
|
|
2023-06-27 16:51:05 +02:00
|
|
|
import (
|
2023-08-18 19:23:11 +02:00
|
|
|
"time"
|
|
|
|
|
2023-06-27 16:51:05 +02:00
|
|
|
"github.com/golang-jwt/jwt"
|
|
|
|
)
|
|
|
|
|
2022-02-23 20:02:02 +01:00
|
|
|
// AuthorizationClaims stores authorization information from JWTs
|
|
|
|
type AuthorizationClaims struct {
|
2022-03-01 15:22:18 +01:00
|
|
|
UserId string
|
|
|
|
AccountId string
|
|
|
|
Domain string
|
|
|
|
DomainCategory string
|
2023-08-18 19:23:11 +02:00
|
|
|
LastLogin time.Time
|
2024-04-22 11:10:27 +02:00
|
|
|
Invited bool
|
2023-06-27 16:51:05 +02:00
|
|
|
|
|
|
|
Raw jwt.MapClaims
|
2022-02-23 20:02:02 +01:00
|
|
|
}
|