Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 7
Excerpt

This guide analyzes the steps to setup a Google Gmail App to send mails (e.g., automatic notifications), combining OAuth 2.0 client credentials flow, without the user’s interaction.

Creating a New Project


  1. Go

to https://console.cloud.google.com/ . If you have no projects, select Create Project.Image Removed
  • Otherwise, if you already have projects, select the drop-down with the name of the project, and in the dialog box select New Project.

    Image Removed
  • Enter the Project Name and optionally, select an Organization. Then select Create.

    Image Removed
    1. to Google's Developer Console and click on the button Select A Project under the Navigation Bar at the top of the screen.

      Image Added


    2. Click on the New Project button.

      Image Added


    3. Fill in the name of the Project Name, and if appropriate, select the Organization that your program should be associated with. Then click on Create.

      Image Added

    Obtaining an OAuth2 Client ID and Secret

     From the console, select

    After creating a project, the next step is to create the OAuth2 credentials.

    1. Click the  symbol, move down to APIs & Services and then select OAuth consent screen.

    Image Removed
    1. Image Added


    2. Select the External

    ,
    1.  radio item and then click Create.

    Image RemovedEnter the
    1. Image Added


    2. Fill in the Application name

    , and fill in
    1.  and any other fields that are appropriate for your application

    , then select Save and Continue. The User support email under App information and Email addresses under Developer contact information are required to proceed.Image Removed

  • In the next two sections, specify your Scopes and Test users, and in the last section, Summary, select Back to Dashboard.

    Image Removed
  • From the Dashboard, select Credentials.

    Image Removed
  • In the Credentials section, select Create Credentials and then OAuth client ID

    Image Removed
  • Under Application type select Web application. Specify a Name and under Authorized redirect URIs select Add URI.

    Image Removed
  • The URI should look like the following:
    http:
    1. and then click Create.

      Image Added


    2. Click + Create Credentials and then select OAuth client ID.

      Image Added


    3. Select the Other radio item in the Application type section and then type in a name to use for the OAuth client ID. Once completed, click Create.

      Image Added


    4. At this point, you will be presented with a web dialog that will allow you to copy the Client ID and Client Secret strings into your clipboard to paste them into your program.

      Image Added


    5. Click on the client you just registered and add your redirect URL.

      Image Added

      The URL should be https://{BSS-URL}/core/email/gmail/authCode

    After entering the URI, select Create.

    Image Removed

    A dialog box will display Your Client ID and Your Client Secret.

    Image Removed
    Rw ui textbox macro
    typenote

    The URL should begin with the https format.

    Your App Registration is ready.

    BSS Email Preferences Setup


    On BSS, navigate to BSS Setup > Administration > System Options > Organization settings, and under the Email Preferences, at the end of the page,select the Modern authentication mechanism. For the Gmail client fill in the ClientId, the Secret, and the Email you used to create the application on Google.

    Rw ui textbox macro
    typewarning

    Do not click the Authorize button before saving!


    Then, Save the form.

    Afterwards, click on the Authorize button.

    By clicking on the Authorize button, you are redirected to the sign in with Google page where the following steps must by ensued.
    First choose your Google account.

    Then click on the Continue button to proceed.

    Also, click on Continue to accept the additional access.

    And you should see the the Status change along with the respective buttons. Now, the user can renew the Authentication or revoke it at will.


    Table of Contents


    Table of Contents
    minLevel1
    maxLevel7
    excludeTable of Contents