Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeRS256 ¶
Compact RS256 token as PyJWT jwt.encode builds it with sorted header keys and a compact payload
func UnverifiedClaims ¶
Payload of a compact token decoded with signature and expiry verification off
Types ¶
type JWKClient ¶
type JWKClient struct {
URL string
Headers map[string]string
Timeout time.Duration
Lifespan time.Duration
HTTP *http.Client
Now func() time.Time
// contains filtered or unexported fields
}
JWKClient fetches and caches a JWKS endpoint like PyJWKClient with the JWK set cache on
func NewJWKClient ¶
Client with the PyJWKClient defaults of a 30 second timeout and a 300 second set lifespan
func (*JWKClient) SigningKey ¶
Key whose id matches kid, refetching the set once when the cached one has no match
func (*JWKClient) SigningKeyFromJWT ¶
Key named by the unverified kid header of token