zeekay 75da549556 rename: ziti → zt across all paths
- Repo names: ziti-* → zt-*
- Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt
- Docker images: hanzozt/ziti-* → hanzozt/zt-*
- C/Java/JS symbols: ziti_* → zt_*
- File and directory names updated
2026-02-18 18:34:07 -08:00
2022-06-01 14:14:18 -04:00
2022-06-01 14:14:18 -04:00
2023-03-01 13:43:46 -05:00
2022-06-01 14:14:18 -04:00
2022-09-21 15:14:50 -04:00

jwks

Package jwks provides low level facilities for parsing JWKs endpoint responses according to RFC7517. It provides the basic JWK and JWK Set (JWKS) JSON parsing structs Response (keys) and Key ([]key). It also provides a small utility function and interface to obtain and parse a JWKS endpoint over string defined locations such as via URLs for HTTP(S).

This package aims to have as few dependencies as possible. It is meant to be the base building block for something grander.

Add To Your Project:

go get -u github.com/hanzozt/jwks@latest

Basic resolver usage:

resolver := &HttpResolver{}
resp, rawPayload, err := resolver.Get("https://myhost/.well-known/jwks.json")

Basic parser usage:

response := &Response{}
err := json.Unmarshal([]byte(`{"keys": [...]}`), response)
S
Description
Lightweight support for interacting with JKWS endpoints
Readme Apache-2.0
90 KiB
Languages
Go 100%