I have an application deployed on Google App Engine (GAE) for Java. I'm using Google Identity Toolkit for authentication (and not the standard Google Account based authentication provided by GAE). The front-end is GWT based.
I have some static content (image files) that is located in war/static/images
folder. I want to restrict access to these files only to a subset of signed in users i.e. add authorization around these files. GAE provides security-constraits
but that doesn't work for me as I'm not using Google Accounts, and even then, it doesn't provide full authorization based on my requirements.
What's the best way to add authorization around these static assets?