views:

773

answers:

2

Hi all ,

I'm looking for an open source library that implements the OAuth protocol , I need the server side implementation . Say I have a Social network system , and I want to give my users an OAth abiliy to my API , like facebook.

Do you have any suggestion , sure examples .

Thanks in advance ...

A: 

http://code.google.com/p/oauth/ is the reference library, or there's also http://github.com/fernandezpablo85/scribe as an alternative.

oedo
+2  A: 

There are few Java libraries list here,

http://oauth.net/code/

You should use the first one. It's the only one with server support. You can find an example,

http://oauth.googlecode.com/svn/code/java/example/oauth-provider/

You might want also look at OAuth 2.0,

http://tools.ietf.org/html/draft-ietf-oauth-v2-02

Which greatly simplifies OAuth flow and you don't really need a library to implement it.

ZZ Coder
Thanks for your help . One more thing , my project is built on EJB2.1 , so , what you recommend , to make session bean that manages the oauth-provider or can use it as is , I need to make some operations with the DB , so I need to make some omdifications in the code.Thanks ...
Wasim