It seems like your browser didn't download the required fonts. Please revise your security settings and try again.

Installation Instructions - Google Button

  • Last updated on

The Google Button is no longer supported as of October 2023.

 

This article describes how to install the Google reporting button. Before beginning with the steps on this page, make sure that you have completed the steps described in Customization Options - Google Button.

Step 1: Creating your OAuth Application
  1. Log into the Google Cloud Platform Developer's site at https://console.developers.google.com/.
  2. Click New Project
  3. Enter a name for the project, like Report Phish Button
  4. Click Create.
  5. Enable the GMail API.
  6. In the left navigation panel, click OAuth consent screen. For the User/Application Type, select Internal. Then click Save
  7. On the OAuth consent screen page, specify the following information, then click Save
    • Application type – Select Internal.
    • Application Name – Provide a name for the button, like Report Phish Button.
    • Application Logo – Select the logo you specified in the customization steps. This file is likely phish128.png.
    • Scopes – Do not change the values in this field. If you added the GMail API successfully in Step 5 above, this field includes email, profile, and openid

      The following fields are not required:
  • Authorized domains
  • Application Homepage link
  • Application Privacy Policy link
  • Application Terms of Service link 
Step 2: Creating OAuth User Credentials
  1. While still in https://console.developers.google.com, in the left navigation panel, click Credentials
  2. Click Create Credentials and select OAuth client ID from the menu. 
  3. On the OAuth client ID page, provide the following information:
    • Application Type – Select Chrome App.
    • Name – Type the Application Name from above, adding the word Client at the end. For example, Client Report Phish Button Client.
  4. Click Create.
  5. In the OAuth client IDs table, copy the Client ID, which looks similar to this example: 481663857010-k6dvoeisc89jlbh4ltikuv18dvbmjf52.apps.googleusercontent.com. You will use this ID in Step 3: Updating the Extension in the Chrome Store and in Step 5: Authorizing the Extension.
Step 3: Updating the Extension in the Chrome Store

In this section, you will use the ID you just received in Step 2 above to update the extension you uploaded in the steps described in the Customization Options page.

Notes
  • The Google review process must be completed before you can perform these steps. You cannot modify an extension if it is in the Pending Review stage.
  • After you make the modifications in this section, Google might change the status of your extension back to Pending Review .
  1. Open the < 2.2.8.1>.zip file that you downloaded from Barracuda.
  2. Within the ZIP file, modify the manifest.json file:
    1. Update the version to a larger number. For example, if the version was 2.2.8.1, make it 2.2.8.2. If you do not update this version to a larger number, the upload will fail.
    2. Locate the oauth2 section. In the client_id key, enter the value of the client ID you copied in Step 2 above.  
      jsonKey.png
    3. Save the manifest.json file. Verify that the changes you made to the manifest.json were saved, then add the modified JSON file to the ZIP file.
    4. Re-upload the ZIP file to the Chrome store. As noted above, you cannot modify the extension until it is out of Pending Review stage. 
    5. In the Chrome Store Developer Dashboard, click Edit.  
    6. Re-upload the extension. Google might require you to wait for review again.
  3. Click Publish to publish your changes.
Step 4: Add Configuration JSON and Set Automatic Installation

In this section, you will use the 32-character ID for your extension that you obtained at the end of the process described in Customization Options.

  1. Log into the Google Admin Console at https://admin.google.com/.
  2. Navigate to Devices > Chrome Management > Apps & Extensions to arrive on this page: https://admin.google.com/ac/chrome/apps/user.
  3. In the lower right portion of the screen, hover your mouse over the large yellow button and click Add Chrome app or extension by ID.  
    addChromeApp.png
  4. When prompted for the Extension ID, paste the 32-character ID for your extension from the end of the process described in Customization Options. Then click Save.
  5. In the list of apps, locate the Report Phish Customized app and change the Installation Policy to Force Install and pin (original value = Install). Then click Save.
  6. Set policies for the app using the google_button_config.json file located in the ZIP file you downloaded from Barracuda.
    1. Open the Zip file you downloaded as part of Customization Options - Google Button
    2. Open the google_button_config.json in a text or code editor, like Visual Studio Code, Sublime Text, or NotePad. Do not use a program like Microsoft Word.
    3. Copy all of the text in the file. Be careful not to change the file. 
    4. Back in the Google Admin Console, click the Report Phish Customized app. In the right panel, locate Policy for Extensions. Right-click in that field and paste the contents of the JSON file you copied. 
  7. Click Save
Step 5: Authorizing the Extension

In this step, you set up the system to automatically authorize the button for all users of your organization. This prevents users from having to authorize the button by themselves, and potentially not performing the authorization at all.

Note

Users must be logged into their browser with their company email. It is not sufficient to log into GMail, but not the browser.

  1. Log into the Google Admin Console at https://admin.google.com/.
  2. Click Security, then click Show More
    If Show More is not visible, continue to the next step.
  3. Click Advanced Settings, then click Authentication / Manage API client access.
  4. Enter the following data, then click Authorize.
    • Client Name – Enter your Oauth Client ID from Step 2 above.  It will look similar to 481463657710-k6dvoehsc8jjlb74ltikuva8dvbmjf52.apps.googleusercontent.com.
    • Scopes – Enter one or more scopes: profile, https://mail.google.com .
Step 7: Verify 
  1. To verify the policy is loading correctly for your users, go to chrome://policy and verify that Report Phish by PhishLine is present in the list of policies.
  2. Verify that Policy Name myConfig has the expected values from your uploaded JSON file. If there are no values, restart your browser. If the values still do not display as expected, verify that you completed the steps on this page correctly.  If you continue to have problems, contact Barracuda Networks Support.