How to register a Google developer app and get OAuth 2 credentials
January 31, 2024
- Create a Google Developer account and sign in.
- Go to the Google Cloud Platform console.
- Select or create a project.
- Enable the necessary APIs for your OAuth application. For Google Directory, make sure that you have the Admin SDK API enabled.
- Generate OAuth credentials (client ID and secret). Enter these values in https://app.unified.to/integrations/googledirectory or https://app.unified.to/integrations/google?auth=1
- Configure the authorized redirect URIs for your application. For Unified.to, this must be either
https://api.unified.to/oauth/code
orhttps://api-eu.unified.to/oauth/code
- Set up consent screen information for your application. This will include your application's name and logo.
- Select the appropriate permission scopes. You will at least need
openid
,userinfo.email
,userinfo.profile
,admin.directory.group.readonly
andadmin.directory.user
oradmin.directory.user.readonly
. - Publish your OAuth application and make it available for users. Before you complete this step, only members of your Google account will be able to access your application.
- Once your application is approved and verified it will start showing your application name on the authorization consent screen. Until then it will be showing the "unified.to" name, which is inferred from the redirect URL.