0

I d like to use an Oauth authentification on my android application with a google account so that the user doesn't need to create a new login and password and that I don't have to handle the authentification but google does it in my place. I've been searching for a while but couldn't found informations on how to do this with a google account on an android app. Does anyone know about that ?

Karly
  • 389
  • 2
  • 7
  • 25

1 Answers1

2

There's no need to use a special OAuth Library like signpost. Android has an AccountManager with Google OAuth support built in.

See this answer for a minimalistic example on how to use it. Google's account type is com.google.

Google has also has a step-by-step guide on how to implement this using the access_token then to call the Google Tasks API.

Community
  • 1
  • 1
Jan Gerlinger
  • 7,361
  • 1
  • 44
  • 52