Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oauth 2 on an Android app

So i need to be able to use Oauth for the login part on my Android application(not for Twitter, google,etc...) it's a private application. The rest of the app uses rest services w/ the authenticated token.

Here basically i'm looking for any tips, a library or an article recommendation. Most of the articles i found are about how to login to Google's services and such.

Thanks,

like image 829
Ron Avatar asked Feb 20 '13 20:02

Ron


People also ask

What is OAuth2 in Android?

The industry standard way to deal with authentication to third-party services is the OAuth2 protocol. OAuth2 provides a single value, called an auth token, that represents both the user's identity and the application's authorization to act on the user's behalf.

How does OAuth work for mobile apps?

OAuth is an authorization framework that enables you to work with external systems in a secure way using digital identifiers called tokens. One type of token is called an access token . Its function is to allow you to exercise APIs securely.

Which OAuth type is appropriate for mobile apps?

The Authorization Code Grant flow is recommended for applications that have a web service. This flow requires server-to-server communication using an application's client secret. Note: Never put your client secret in distributed code, such as apps downloaded through an app store or client-side JavaScript.


1 Answers

Check this one: scribe It is pretty simple.

Here it is a list of libraries cited by the Oauth2.0 "authority":

oauth.net/2

like image 103
cibercitizen1 Avatar answered Nov 07 '22 03:11

cibercitizen1