Simple openid federation provider for Apache Knox from google java client sample
Clone or fork this project and build it with:
mvn clean install -DskipTests=true
Test isn't fully passing yet...
You can then add it to the a Knox deployment by adding the resulting jar file to the {GATEWAY_HOME}/ext directory. It will be picked by being on the classpath and discovered using the ServiceLoader API for finding certain interface implementations.