Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding google to IAM's Identity Providers OpenID Connect

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

like image 571
Naguib Ihab Avatar asked Oct 14 '25 08:10

Naguib Ihab


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
like image 160
Naguib Ihab Avatar answered Oct 17 '25 03:10

Naguib Ihab



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!