Demo application of one of ways to do auth in ratpack. Basically, it provides some server side logic also for angular-http-auth.
To run this app, you need Java 7
Check this project out, cd into the directory and run:
./gradlew run
This will start the ratpack app. In your browser go to http://localhost:5050.
To post protected content, you need log in as demo user: user/pass.
Yoke/Vert.x version goes here, https://github.com/panzhangwang/vertx-angular-auth