Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenValidator ¶
type AuthTokenValidator interface { Initialize() Validate(token string, permission *Permission, namespace *string, userId *string) error }
func NewTokenValidator ¶
func NewTokenValidator(authService iam.OAuth20Service, refreshInterval time.Duration) AuthTokenValidator
type JWTClaims ¶
type JWTClaims struct { Namespace string `json:"namespace"` DisplayName string `json:"display_name"` Roles []string `json:"roles"` NamespaceRoles []NamespaceRole `json:"namespace_roles"` Permissions []Permission `json:"permissions"` Bans []JWTBan `json:"bans"` JusticeFlags int `json:"jflgs"` Scope string `json:"scope"` Country string `json:"country"` ClientID string `json:"client_id"` IsComply bool `json:"is_comply"` StudioNamespace string `json:"studio_namespace,omitempty"` jwt.Claims }
JWTClaims holds data stored in a JWT access token with additional Justice Flags field
type NamespaceRole ¶
type Permission ¶
type Role ¶
type Role struct { RoleID string `json:"RoleId"` RoleName string Permissions []Permission }
Role holds info about a user role.
Click to show internal directories.
Click to hide internal directories.