mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-17 00:23:52 +00:00
bugfix keys.json
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user