Documentation ¶
Overview ¶
Package role represents the processing logic of role token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRoleTokenInvalid "Access denied due to invalid RoleToken" ErrRoleTokenInvalid = errors.New("Access denied due to invalid RoleToken") // ErrRoleTokenExpired "Access denied due to expired RoleToken" ErrRoleTokenExpired = errors.New("Access denied due to expired RoleToken") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*rtp) error
Option represents a functional options pattern interface
func WithPubkeyProvider ¶
WithPubkeyProvider represents set pubkey provider functional option
type Token ¶
type Token struct { // Version string // required Domain string // required Roles []string // required Principal string // required // Host string // Salt string // required TimeStamp time.Time // required ExpiryTime time.Time // required KeyID string // required // IP string // ProxyUser string Signature string // required UnsignedToken string }
Token represents role token data.
Click to show internal directories.
Click to hide internal directories.