Maxim-Mazurok / GAuthDemo

Demo project for Sign In with Google + Access to Google Calendar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GAuth Demo

Auth Flow

  1. Android:
  2. Sign in with Google (using requestServerAuthCode with the correct requestScopes)
  3. Handle result, send serverAuthCode to server
  4. Server:
  5. Exchange serverAuthCode for access_token
  6. Use access_token to access required Google APIs

Notes

  • Need to setup both Android Client (with your keystore SHA-1), and Web client, and use Web client ID in the app
  • Make sure app is signed using the debug key
  • Device has to be signed into Google account (especially emulator)
  • During early development if app isn't published - signed in account has to be the same one as the API keys owner account

About

Demo project for Sign In with Google + Access to Google Calendar


Languages

Language:Kotlin 100.0%