We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 221b414 commit 7d8695cCopy full SHA for 7d8695c
jwks.go
@@ -14,7 +14,7 @@ import (
14
"net/http"
15
)
16
17
-// JSONWebKey is a JSON web key returned by the JWKS request.
+// JSONWebKey is a JSON web key returned by the JWKS request.
18
type JSONWebKey struct {
19
Kid string `json:"kid"`
20
Kty string `json:"kty"`
@@ -41,6 +41,7 @@ type JSONWebKeySet struct {
41
Keys []JSONWebKey `json:"keys"`
42
}
43
44
+// FetchJWKS fetches the JSON web keys from the given URL and returns a map kid -> key.
45
func FetchJWKS(url string, client *http.Client) (map[string]interface{}, error) {
46
response, err := client.Get(url)
47
if err != nil {
0 commit comments