Using an AccountManager Account for OAuth2 Third-Party Authentication

I am working on an application that will have to get authorization through OAuth2 from a third-party web service (the third party means that this is not Google, and I do not own it).

This article:

http://developer.android.com/training/id-auth/authenticate.html

It looks like I should use AccountManager for this purpose. Thinking about it, I have some doubts in favor of this, or even if it suits me. If I wanted to use a Google account or another account that was already installed in AccountManager by some other application, then obviously, it would be nice to get the credentials from AccountManager. But since I'm going to use an account that is most likely not part of the AccountManager, I will need to do all the work to set it up.

Does the AccountManager support any kind of OAuth2 request processing? If this is not so, then what can I get using it?

And since I do not have a web service associated with this type of account, is it even advisable for me to install such accounts in the AccountManager?

Thank!

+5
1

4 , .

Oauth . OAuth, Facebook Twitter, AccountManager . https://developer.android.com/training/id-auth/custom_auth.html.

, OAuth, Facebook, Twitter, WeChat .., AccountManager, , SyncAdapter ( ), OAuth , .

, Google API-, , AccountManager; , , AccountManager for Tasks API. , https://developers.google.com/google-apps/tasks/quickstart/java#step_3_configure_the_project_build.

OAuth SDK , , API REST, .

0

All Articles