Configure OAuth 2.0 for Installed Applications

Use this procedure to configure a secure connection between integrated applications such as MiCollab Client and Google Apps such as Google Contacts or Google Calendar using the OAuth 2.0 protocol.

If OAuth 2.0 authorization is successful, then Google will grant an access token to the application on the Mitel Standard Linux server. These tokens can be re-issued when they expire or if the project is changed in any way.

Create an API Project and Client ID in Google

  1. Access the Google API console:
    • Open a web browser and navigate to https://console.developers.google.com/.

    • Enter the domain administrator Email and Password to log in.

  2. Create a new project and enter a name for the project.
    Figure 1. Select a project

  3. Remain in the project.

  4. Enable Google Calendar API from APIs & Services > Library:

    1. Open the side menu and select API Manager.

    2. Select a API such as "Google Calendar API" and click Enable.

      Figure 2. Google Calendar API

  5. Go to Credentials, click Create OAuth Client ID.

  6. Select the application type as TV's and Limited Input devices.
    Figure 3. Create OAuth Client ID
  7. Copy the Client ID and Client Secret to a text file for the later use.

Generate Authentication Code

To generate the Authentication Code from MSL which is used to get a Google Access Token for Integration with Google services.

  1. Go to Google Apps section in MiCollab, and select the Installed Applications tab.
    Figure 4. Generate Authorization Code
  2. Enter the following information on the respective fields:
    • Product Name - Name of the project as created in Step 2.

    • Client ID - Noted in Step 7

    • Client Secret - Noted in Step 7

  3. Click Save and Generate Authorization Code.

    The authorization code is generated and displayed along with the following link https://www.google.com/device.

  4. Click on the above link.
    Figure 5. Connect a device
  5. Enter the authorization code and then click Next.

  6. Select the account with which you are connected with/you want to continue sign in.
    Figure 6. Choose an account
  7. Once the account is selected, the Success message displays.
    Figure 7. Success! Device connected
  8. Go to MiCollab Client, click Configure MiCollab Client Service, and then click Calendar Integration.
    Figure 8. Calendar Integration
  9. In the Calendar Integration screen, select the application as Google from the drop-down list.

  10. Select the Enable calendar integration checkbox.

  11. Click Test Connection.

    The connection success message displays if all the configuration is correct.

  12. Go to MiCollab Client Settings, and click Calendar Integration.

  13. Update the Google Calendar ID, and click OK.
    Figure 9. Update Credentials

Once the Calendar Integration is successful, the MiCollab Client displays the status of the appointments.