Solved
How can I create a custom OAK Login module
I need to create a custom OAK login module as discussed here:
http://jackrabbit.apache.org/oak/docs/security/authentication/externalloginmodule.html
Is there any example on how to perform this task and use this APIs within AEM?