diff --git a/backend/internal/dto/oidc_dto.go b/backend/internal/dto/oidc_dto.go index 83f1bd25..c4197229 100644 --- a/backend/internal/dto/oidc_dto.go +++ b/backend/internal/dto/oidc_dto.go @@ -103,7 +103,7 @@ type OidcClientFederatedIdentityDto struct { Subject string `json:"subject,omitempty"` Audience string `json:"audience,omitempty"` JWKS string `json:"jwks,omitempty"` - PublicKeys []json.RawMessage `json:"publicKeys,omitempty"` + PublicKeys []json.RawMessage `json:"publicKeys,omitempty" swaggertype:"array,object"` ReplayProtection bool `json:"replayProtection"` } diff --git a/backend/internal/utils/jwk/public_key.go b/backend/internal/utils/jwk/public_key.go index 8613b787..5da0502d 100644 --- a/backend/internal/utils/jwk/public_key.go +++ b/backend/internal/utils/jwk/public_key.go @@ -94,7 +94,7 @@ func NormalizePublicKeys(raw []json.RawMessage) ([]json.RawMessage, error) { if err != nil { return nil, fmt.Errorf("failed to encode key %d: %w", i+1, err) } - normalized[i] = json.RawMessage(bytes.TrimSpace(encoded)) + normalized[i] = bytes.TrimSpace(encoded) } return normalized, nil