I hope this question isn't considered to "open-ended"...
The company that I work for is concerned about their image and they would like to have more control about the publications into their official social medias. Two major drivers to achieve: gain control over the passwords and inspect texts that are being posted.
My first impulse was to build some kind of proxy and intercept the request (get, post, etc) and change it. For instance, if a tweet has improper words, the proxy could drop the request and return a 403 response...
I did a small PoC using Jetty. I was able to setup a proxy and intercept requests. Manipulate HTTP request/response was easy, but HTTPS is a different story. With Jetty I was able to do only SSL tunneling, the proxy works, but of course I'm not able to "see" the request/response. Is it achievable with Jetty?
I also studied a squid + Internet Content Adaptation Protocol (ICAP) solution. But ICAP open source solutions seem to be very rudimentary. Does ICAP offers this kind of solution?
Another approach is to create an application that uses a façade to specialized clients for each social network. This way I could use httpcomponents/guava to connect to the sites and perform the required steps to publish something.
Has anyone ever had this kind of need and can you help me by pointing out some paths?
EDIT
Googling a little bit more I found that the scenario that I described could be interpreted as MITM attack... OMG...