开发者_运维问答
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this questionI don't want to code things that already exist...
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.
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.
Leeloo worked great with Github. https://bitbucket.org/smartproject/oauth-2.0/wiki/Home
精彩评论