summaryrefslogtreecommitdiff
path: root/pkg/web/json_web_key_sets.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/web/json_web_key_sets.go')
-rw-r--r--pkg/web/json_web_key_sets.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/web/json_web_key_sets.go b/pkg/web/json_web_key_sets.go
index 485c0eb..2d32845 100644
--- a/pkg/web/json_web_key_sets.go
+++ b/pkg/web/json_web_key_sets.go
@@ -9,18 +9,6 @@ import (
"github.com/lestrrat-go/jwx/v2/jwk"
)
-type JsonWebKeySet struct {
- Keys []RsaJsonWebKey `json:"keys"`
-}
-
-type RsaJsonWebKey struct {
- E string `json:"e"`
- KeyId string `json:"kid"`
- KeyType string `json:"kty"`
- N string `json:"n"`
- Use string `json:"use"`
-}
-
func (h *HttpContext) JsonWebKeySets(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
privatePem, _ := pem.Decode(h.keyData)