Google Authentication guide
- To integrate with Google you first need to create an OAuth 2.0 client ID. Please see the tutorial.
- Open the following link and log in with your account.
First, you need to create a project by pressing the “Create” button:
Type your project name and choose your organization:
-
Go to Credentials menu => OAuth consent screen tab. Type the application name and the authorized domain and click the “Save” button.
- Go to the “Credentials” tab and create an OAuth client ID.
- Select “Web Application” and fill the required fields. Click the “Create” button.
- Save clientID and client secret if you need it (this credentials can be accessed at any time).
- Now enable the admin SDK API. Go to Dashboard menu and click the “Enable APIs and services” button.
- Type “Admin SDK” in the search field and chose “Admin SDK”.
- Click “Enable” button to enable this API.
- Go back to OAuth consent screen and add “scope” .
Click the “Add scope” button:
Add scope:
And click “Save” button on OAuth consent screen:
- If you want to make your application public you need to verify it:
- Open the following link and log in with your account.
- Umbraco settings
- G Suite users synchronization:
Go to the “Settings” section => “Sync” tab and type:
- Client id - Your client Id.
- Client secret - Your client secret.
- Domain - your G Suite domain (from which users will be fetched).
- Some kind of unique key (to skip google verification each time you press “Sync” button with the same credentials).
- Google authentication:
To enable google login functionality you need to set a few options in web config file:
- Google.OAuth.Enabled: set to “true” if you want to enable Google authentication.
- Google.OAuth.ClientId: type here your client id (it can be the same client id which was used for G Suite synchronization)
- Google.OAuth.Domain: specify domain if you want that only users with specific domain can access to uintra using Google authentication.
- G Suite users synchronization:
<add key="Google.OAuth.Enabled" value="true"/>
<add key="Google.OAuth.ClientID" value="[your client id]"/>
<add key="Google.OAuth.Domain" value="[your domain]"/>