How to enable Google-Login + AWS-Cognito in Mobile platform

  1. Create project in Google Filebase(https://console.firebase.google.com/):
  2. Creat a Web Client ID on Google Console page:https://console.developers.google.com/apis/credentials?project=mts-service-tips

    -“Create credentials” -> “OAuth client ID”

    -“Web application” -> “Create”

  3. Copy the Client ID of the Web application you just created to put in your Android gradle file: GOOGLE_WEB_CLIENT_ID=588682943670-9du92ps4tu9j477aqikdq201bpds8d65.apps.googleusercontent.com
  4. Copy Client ID from Android Client,

    put in IAM > Providers > accounts.google.com


How to generate SHA certificate fingerprints

reference:https://developers.google.com/android/guides/client-auth

Command: keytool -exportcert -list -v -alias <your-key-name> -keystore <path-to-production-keystore>

Debug: keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

Probably you will get: SHA1: BB:94:85:A2:BD:F1:33:96:91:3F:18:01:F3:DF:F0:FD:5D:BE:DF:12

Release: keytool -exportcert -list -v -alias androiddebugkey -keystore ~/repo/ebuilder/customer_journey/android/app/andriod.release.keystore

MTS Release keytool -exportcert -list -v -alias eb-release -keystore ~/eBuilder/mts/eb-release.mts.jks

About Tang

A mobile developer, work in Stockholm, Sweden
This entry was posted in Mobile. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s