Menu
AWS Mobile
Developer Guide

Create an OAuth iOS Client ID

To enable Google Sign-In for your iOS app, create an iOS OAuth client ID in the Google Developers Console. This enables your app to access Google APIs directly and to manage token lifecycle through Amazon Cognito Identity. This iOS OAuth client ID is in addition to the web application OAuth client ID that you created when following steps to Create a Google Developers Project and OAuth Web Client ID. You will provide this client ID to Mobile Hub during the Google Sign-In configuration.

To create an OAuth iOS client ID

  1. Go to the Google Developers Console at https://console.developers.google.com.

  2. In the Dashboard for your project, go to the Use Google APIs section and then choose Enable and manage APIs.

    
                  Choosing Enable and manage APIs for Google API in the Google Developers Console
  3. In the API Manager, choose Credentials in the left side menu.

    
                  Choosing Credentials from the API Manager in the Google Developers Console
  4. Choose New Credentials and then choose OAuth client ID.

    
                  Creating new OAuth client ID credentials in the Google Developers Console
  5. In Create client ID, choose iOS.

    
                  Creating an iOS client ID in the Google Developers Console
  6. In Name, enter a name in the format com.amazon.YOUR-APP-NAME YOUR-iOS-CLIENT-ID.

  7. In Bundle ID, enter the bundle name in the format com.amazon.YOUR-APP-NAME.

    
                  Entering the bundle ID for an iOS app in the Google Developers Console
  8. Choose Create.

  9. In the OAuth client pop-up, copy and save the value that was generated for your iOS client ID. You will need these values to implement Google Sign-In in your Mobile Hub app. After you copy the client ID, choose OK.

    
                  Displaying the generated client ID in the Google Developers Console
  10. Paste the iOS client ID value into the Mobile HubGoogle iOS Client ID field for your project.

    
                  Where to paste the iOS client ID value from Google into the |AMH| console