Commit 767a833e authored by michael.simon's avatar michael.simon
Browse files

empty certs controller

not yet implemented
parent 66b8d2e2
......@@ -11,6 +11,10 @@ import javax.ws.rs.core.MediaType;
import org.slf4j.Logger;
import com.nimbusds.jose.jwk.JWKSet;
import net.minidev.json.JSONObject;
@Path("/realms")
public class OidcCertsController {
......@@ -20,9 +24,12 @@ public class OidcCertsController {
@GET
@Path("/{realm}/protocol/openid-connect/certs")
@Produces(MediaType.APPLICATION_JSON)
public void auth(@PathParam("realm") String realm)
public JSONObject auth(@PathParam("realm") String realm)
throws IOException {
logger.debug("certs called for {}", realm);
JWKSet jwk = new JWKSet();
return jwk.toJSONObject(true);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment