Skip to content

Setup Authentication for Google Assistant Unofficial Desktop Client

Melvin. L. Abraham edited this page Dec 29, 2020 · 11 revisions

Device Registration

  1. Head on to Actions Console

  2. Click on the "New Project" button

Actions Console

  1. You will see a "New Project" popup. Enter any project name and set other options accordingly and click on "Create Project button"

Add Project

  1. Now, after your project is created, you will see the "onboarding" page. Just scroll to the bottom and click on the "click here" link right after the text "Are you looking for device registration?" to proceed to Device Registration

Onboarding Page

  1. Wait until your project is created...

Creating Project on Actions Console

  1. Now, you will be landed in the "Device Registration" page. Here, click on "Register Model" button

Device Registration Page

  1. You will see a "Register Model" popup, fill all the details and for device type, select any (eg: light). Then, finally click on "REGISTER MODEL"

Register Model

  1. Now, after you have created a model, you will be asked to download the credentials. Click on "Download OAuth 2.0 credentials"

Download Credentials

Now, you are done with the registration process. But in order to authenticate, you have to "Configure Consent Screen"

Configure Consent Screen

  1. Head on to Cloud Console

  2. In the Navbar beside the logo, click on the button to select a project

Select Project in Cloud Console

  1. You will see a popup titled "Select a project". Click on the "ALL" tab and select the name of the project you just created. Then, press OPEN to continue

Select Project Popup

  1. Now, from the hamburger menu, select "APIs & Services"

APIs and Services Menu

  1. Click on "ENABLE APIS AND SERVICES"

Enable APIs and Services Button

  1. You will be landed in "API Library"

API Library

  1. In the search bar, type "Google Assistant" and click on "Google Assistant API"

API Library Search

  1. Press "ENABLE" button to enable the API

Enable API

  1. Wait until the API is enabled

  2. Now, from the hamburger menu, click on "Credentials"

  3. Click on the "CONFIGURE CONSENT SCREEN"

Credentials Tab

  1. In the OAuth Consent Screen under User Type, select External. Then, click CREATE

OAuth User Type

  1. In the next page, under "App Registration" select your email for "User Support email"

Select Support E-Mail

  1. Scroll down to the bottom of the page. Under "Developer Contact Information", fill in your email address for "Email addresses" and click on SAVE AND CONTINUE

Fill Developer Contact E-mail address

  1. Now skip the "Scopes" screen by clicking on SAVE AND CONTINUE

click on "save and continue" to skip "Scopes" screen

  1. Under "Test Users" click on "ADD USERS" button

Add users under "Test Users"

  1. Under "Add Users", type the email address of the Gmail account that you will use to authenticate (preferably your current Gmail account). You can add multiple Gmail accounts by adding a comma after each of the Gmail accounts.

Type Gmail account email address for authentication

Setting authentication in the app

  1. Run and launch the Google Assistant Unofficial Desktop Client app

  2. Click on the "Settings" button in the top-left corner of the application

  3. Under the "Authentication" section, set the "Key File Path" to the path where you have kept the "OAuth 2.0 Credentials" and leave the "Saved Tokens Path" empty. Now click on "Save" button

Authentication: Set Key File Path

  1. You will be prompted to automatically create a path for "Saved Tokens Path". Click on "Automatically set a path"

Automatically set a Saved Tokens Path

  1. You will be asked to reload the Assistant. Click on "Relaunch Assistant" button

Relaunch assistant

  1. Now, you will be presented with the "Get Token!" screen. An authentication page will be opened in your default browser

Get Tokens screen

  1. Select the preferred Gmail account to authenticate

Choose Gmail account to authenticate

  1. You might come across the following warning: "Google hasn't verified this app". Since the project is created by you, this should be safe to proceed with. Click on "Advanced"

"Google hasn't verified this app" warning screen

  1. Click on "Go to project-xxxxxx (unsafe)"

Go to project link

  1. Now grant permission to the project by clicking on "Allow"

Project Permission

  1. You will now be presented with the authorization code screen. Click on the copy button

Authorization Code Screen

  1. Switch to the application and paste the code in the respective field. Now click on "Submit"

Paste Authorization Code

  1. You will be prompted to relaunch the app again. Click on "Relaunch Assistant"

Now, you are all set! You can finally use the Google Assistant Unofficial Desktop Client and customize it the way you want... 😉

Other References

Device Registration using UI:

Device Registration using Command Line Tool:

Clone this wiki locally