Adding google to IAM's Identity Providers OpenID Connect

Viewed 521

This was hard to find so I'll add it here in case anyone needs it.

When adding google sign in as a cognito authentication provider for both Android and iOS I need to use the OpenID rather than Google+, but when adding in google as an OpenID I couldn't find the provider URL in google's documentation

1 Answers

The provider URL is hardcoded accounts.google.com for any credential you create, and add all the clientIDs under Audience.

To add google sign in to Cognito for both iOS and Android:

  • Go to IAM -> Identity providers
  • Create a provider
  • Choose OpenID Connect
  • In the provider url write https://accounts.google.com
  • In Audience write one of the app's client_id that you can get from the credentials console

Go back to Cognito:

  • Under authentication providers go to OpenID
  • Select accounts.google.com
Related