Documentation ¶
Index ¶
Constants ¶
View Source
const ( AudienceAuth = "auth" AudienceDiscover = "discover" AudienceTunnel = "tunnel" AudienceAuthorizer = "authorizer" )
Variables ¶
This section is empty.
Functions ¶
func ParseUserID ¶
Types ¶
type ClientClaims ¶
type ClientClaims struct { Audience StringList `json:"aud,omitempty"` UserId string `json:"user_id,omitempty"` InstallationId string `json:"installation_id,omitempty"` PlatformType string `json:"platform_type,omitempty"` Entitlements map[string]interface{} `json:"entitlements,omitempty"` jwt.StandardClaims }
type JWTChecker ¶
type JWTChecker struct {
// contains filtered or unexported fields
}
func NewJWTChecker ¶
func NewJWTChecker(keyKeeper KeyStore) (*JWTChecker, error)
NewJWTChecker creates new JWT validator that uses keys from a given keystore
func (*JWTChecker) Parse ¶
func (instance *JWTChecker) Parse(tokenString string, claims jwt.Claims) error
type JWTMaster ¶
type JWTMaster struct {
// contains filtered or unexported fields
}
func NewJWTMaster ¶
type KeyStoreWrapper ¶
KeyStoreWrapper wraps any type into its closure func `fn` and provides the KeyStore interface.
type StringList ¶
type StringList []string
func (StringList) Has ¶
func (l StringList) Has(entry string) bool
Click to show internal directories.
Click to hide internal directories.