Documentation ¶
Overview ¶
Package kitekey provides method for reading and writing kite.key file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKontrolKey ¶
func GetKontrolKey(token *jwt.Token) (interface{}, error)
GetKontrolKey is used as key getter func for jwt.Parse() function.
func KiteHome ¶
KiteHome returns the home path of Kite directory. The returned value can be overridden by setting KITE_HOME environment variable.
Types ¶
type Extractor ¶
type Extractor struct { Token *jwt.Token Claims *KiteClaims }
Extractor is used to extract kontrol key from JWT token.
type KiteClaims ¶
type KiteClaims struct { jwt.StandardClaims KontrolKey string `json:"kontrolKey,omitempty"` KontrolURL string `json:"kontrolURL,omitempty"` }
KiteClaims represents JWT token claims extended with kontrolKey claim.
Click to show internal directories.
Click to hide internal directories.