javaoauth-provider

How to implement an OAuth provider in Java?


I'm having a lot of problems trying to implement an OAuth provider.

I would like to know if anyone has successfully used an Oauth provider using Java? I found a lot of libraries but all of them are really bad commented and I cant work with them. I'm accepting any documentation that explains how an oauth provider should work and/or how implement it.

Situation: I have some data in MySQL on my server and I would like to authorize a "rely party" to access over OAuth, but I'm not sure how to do it.


Solution

  • I assume you want to secure your server-side services with Oauth? You did not say what kind of server-side technology you are using.

    For example for REST-based servers, both Jersey and Resteasy already have Oauth integrated.

    Also, this seem to be a pretty complete servlet+JSP OAuth example: http://oauth.googlecode.com/svn/code/java/example/oauth-provider/