diff --git a/ssh-key-provider/src/main/java/de/ccc/hamburg/keycloak/ssh_key/SSHKeyResourceProvider.java b/ssh-key-provider/src/main/java/de/ccc/hamburg/keycloak/ssh_key/SSHKeyResourceProvider.java index 1510489..0d10433 100644 --- a/ssh-key-provider/src/main/java/de/ccc/hamburg/keycloak/ssh_key/SSHKeyResourceProvider.java +++ b/ssh-key-provider/src/main/java/de/ccc/hamburg/keycloak/ssh_key/SSHKeyResourceProvider.java @@ -35,19 +35,9 @@ public class SSHKeyResourceProvider implements RealmResourceProvider { } @GET - @Path("hello") + @Path("export") @Produces(MediaType.APPLICATION_JSON) - @Operation(summary = "Public hello endpoint", description = "This endpoint returns hello and the name of the requested realm.") - @APIResponse(responseCode = "200", description = "", content = { - @Content(schema = @Schema(implementation = Response.class, type = SchemaType.OBJECT)) }) - public Response helloAnonymous() { - return Response.ok(Map.of("hello", session.getContext().getRealm().getName())).build(); - } - - @GET - @Path("hello-auth") - @Produces(MediaType.APPLICATION_JSON) - public Response helloAuthenticated() { + public Response exportKeys() { UserProvider userProvider = session.users(); try {