In one of my blogposts, I walk through how you can create a simple microservice that uses keystone for authentication. This repository contains a really simple "Hello, World"-kind of webservice that does this.
Do with it what you will, at your own responsibility.