Skip to content

Google Login

Openfort Auth supports Sign in with Google on the web, native Android applications and Chrome extensions.

Overview

Setting up Twitter logins for your application consists of 3 parts:

Web Configuration

Google pre-built configuration

  1. Go to the API Credentials page.
  2. Click Create credentials and choose OAuth Client ID.
  3. For application type, choose Web application.
  4. Under Authorized redirect URLs, enter the callback URL from the Openfort dashboard. Expand the Google Auth Provider section to display it.
  5. When you finish configuring your credentials, you will be shown your client ID and secret. Add these to the Google Auth Provider section of the Openfort Dashboard.
Google Auth

Expo React Native Configuration

  1. Configure OAuth credentials for your Google Cloud project in the Credentials page of the console. When creating a new OAuth client ID, choose Android or iOS depending on the mobile operating system your app is built for.
    • For Android, use the instructions on screen to provide the SHA-1 certificate fingerprint used to sign your Android app.
      • You will have a different set of SHA-1 certificate fingerprint for testing locally and going to production. Make sure to add both to the Google Cloud Console. and add all of the Client IDs to Openfort dashboard.
    • For iOS, use the instructions on screen to provide the app Bundle ID, and App Store ID and Team ID if the app is already published on the Apple App Store.
  2. Configure the OAuth Consent Screen. This information is shown to the user when giving consent to your app. In particular, make sure you have set up links to your app's privacy policy and terms of service.
  3. Finally, add the client ID from step 1 in the Google provider on the Openfort Dashboard, under Client IDs.

Note that you do not have to configure the OAuth flow in the Openfort Dashboard in order to use native sign in.