Skip to content

Commit

Permalink
KNOX-2938 - jwks.json doesn't have double quotes which makes json inv…
Browse files Browse the repository at this point in the history
…alid (#771)
  • Loading branch information
zeroflag authored Jul 14, 2023
1 parent 8bb882d commit 1b2424d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.security.KeyStore;
import java.security.KeyStoreException;
Expand Down Expand Up @@ -105,7 +106,7 @@ private Response getJwks(final String keystore) {
+ "\"\n}\n").build();
}
return Response.ok()
.entity(jwks.toJSONObject().toString()).build();
.entity(jwks.toString()).type(MediaType.APPLICATION_JSON_TYPE).build();
}

protected RSAPublicKey getPublicKey(final String keystore) throws KeystoreServiceException, KeyStoreException {
Expand Down

0 comments on commit 1b2424d

Please sign in to comment.