mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-27 02:24:30 +01:00
8b619a8224
Get groups from the JWT tokens if the feature enabled for the account
16 lines
274 B
Go
16 lines
274 B
Go
package jwtclaims
|
|
|
|
import (
|
|
"github.com/golang-jwt/jwt"
|
|
)
|
|
|
|
// AuthorizationClaims stores authorization information from JWTs
|
|
type AuthorizationClaims struct {
|
|
UserId string
|
|
AccountId string
|
|
Domain string
|
|
DomainCategory string
|
|
|
|
Raw jwt.MapClaims
|
|
}
|