Implementing OAuth provider in Java

jay_soo picture jay_soo · Jan 27, 2010 · Viewed 33.7k times · Source

What is the fastest/easiest way to get an OAuth provider running in Java? Specifically, I need to authorize third-party apps to access certain web services (I'm thinking token authentication using OAuth).

I've been looking at Jersey's OAuth extension, but as mentioned here, it doesn't provide a full-fledged Service Provider.

Answer

Paul Osman picture Paul Osman · Jan 28, 2010

There are a few Java libraries out there for OAuth. Specifically, I'd have a look at this one. I haven't used it myself, but there is an example for running an OAuth Service Provider.

There's a list of libraries available on the OAuth website: http://oauth.net/code