Question

I don't want to code things that already exist...

Was it helpful?

Solution

Check mature and lightweight leeloo OAuth 2.0 Java library: http://leeloo.smartam.net/

It implements draft 10 of OAuth 2.0 specification and help you to build client, authorization and resource server.

It was not tested on an Android platform, but you are welcome to provide a feedback.

OTHER TIPS

I know this post is a little old, but since google always directs me to this one when I search for an Android OAuth 2.0 library, I think I need to tell you about OAuth2Android:

Currently it supports Bearer-Tokens and MAC-Tokens based on the specifications:

draft-ietf-oauth-v2-16
draft-ietf-oauth-v2-bearer-06
draft-ietf-oauth-v2-http-mac-00

Other extensions are also possible and it will be updated.

You need at least Android Platform Version 2.3.3; API Level 10. You can get it here:
https://github.com/Xotan/OAuth2Android
or
git@github.com:Xotan/OAuth2Android.git

regards Christoph

OAuth 2 is still in draft stage (as of this writing, draft 10).

For now, Apache has an incubator project called Apache Amber which is:

"...a Java development framework mainly aimed to build OAuth-aware applications"

FYI, the Scribe java library is awesome - great docs, simple and dedicated to oauth.

https://github.com/fernandezpablo85/scribe-java/wiki/getting-started

The google-oauth-java-client is written by Google, and supports OAuth 1.0 and 2.0 (draft 10)

Here is the list of OAuth libraries proposed by Twitter development wiki: http://dev.twitter.com/pages/oauth_libraries#java

Currently at least one of the mentioned libraries is qualified as mature by Twitter developers. I think we can trust their expertise in OAuth.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top