bugfix keys.json

This commit is contained in:
kkb0318
2024-05-08 19:19:46 +09:00
parent 16813de7cd
commit 2bc44ce629
3 changed files with 3 additions and 7 deletions
-4
View File
@@ -76,7 +76,3 @@ func NewJWK(pub []byte) (*JWK, error) {
})
return &JWK{Keys: keys}, nil
}
func (j *JWK) GetKeys() []jose.JSONWebKey {
return j.Keys
}
@@ -45,7 +45,7 @@ func (p *IdPDiscoveryContents) Discovery() ([]byte, error) {
}
func (p *IdPDiscoveryContents) JWK() ([]byte, error) {
jsonData, err := json.MarshalIndent(p.jwk.GetKeys(), "", " ")
jsonData, err := json.MarshalIndent(p.jwk, "", " ")
if err != nil {
return nil, err
}