Google mobile devices REST API uses OAuth2 based authentication.
To integrate Google with Oomnitza, you'll need the following information:
- Client ID
- Client Secret
- Scope
You can obtain your Client ID and Client Secret by completing the following steps in the Google API Console:
Create a new project
- Open the Google API Console Dashboard.
- In the sidebar, click Enabled APIs & services.
- Select the dropdown arrow next to the project name and click New Project.
- Enter a Project name and click Create.
Create a OAuth app
- In the sidebar, click OAuth consent screen.
- Select either Internal or External, depending on who you want to make your app available to.
- Click Create.
- Enter your App name and details. You do not need to specify an Authorized domain here, as it will be automatically populated when you add your redirect URL.
- Add your scopes. At the very minimum, the following scope is required
https://www.googleapis.com/auth/admin.directory.device.mobile.readonly
. For a complete list of scopes, refer to Google documentation: OAuth 2.0 Scopes for Google.
Create your credentials (Client ID and Secret)
- In the sidebar, click Credentials.
- Click Create Credentials>OAuth Client ID.
- From the Application type list, select Web application.
- Provide the following redirect URL for Oomnitza:
https://generic-oauth2-proxy.oomnitza.com/oauth2/redirect_url
. - Click Create.
- Copy or download your Client ID and Client Secret.
Tip
Don't forget to keep a copy of your client secret.
Enable Admin SDK API
- In the sidebar, click Library.
- Search for Admin SDK API.
- Click the API tile.
- Click Enable.
Important
If you do not have Admin SDK enabled or the correct scopes defined, you may receive a 403 Forbidden insufficient permission response code when you run the integration in Oomnitza.
Adding the credentials
Important
Some APIs might be restricted to Administrators or users with specific roles. To check that your user account has the appropriate privileges, open this page https://admin.google.com/
. If you can access this page, you should have no issues in adding your credentials.
To stream Google data in Oomnitza, complete the following steps:
- In Oomnitza, click Configuration >Security > Credentials.
- Click Add new credential (+).
- Add the information details.
- Click the AUTHORIZATION tab.
- Ensure that OAuth 2.0 is selected as the authorization type.
- Select Google from the SaaS list.
- Enter your Client ID, Client Secret, and Scope.
- Click Authenticate.
- Click Create.
Documentation Links
For further information please consult the links below:
Comments
0 comments
Please sign in to leave a comment.