Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document describes the how to allow Google APIs API's server to server access for emakin rest clients.

...

Before allowing the access you need to register emakin as application. This step is already configured for cloud configuration and required only for on-premises.

...

Configuring Emakin for Google Login Service

 


  1. Open workflow.config to add google as login service
  2. In loginServices add a new element as below

    Code Block
    languagexml
    <add clientType="Google" enabled="true" clientId="<googleClientId>" clientSecret="<googleClientSecret>" scope="https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email" serviceAccountId="<googleServiceAccountId>" serviceAccountKey="<pathToP12File>;<password>" />Start a new Edit Domain task from Administration menu.
  3. Expand the Google Login Service
  4. Enter the registered google credentials.
    Image Added

  5. In service account key; you can specify in following formats;

    1. If certificate is stored in local server

      1. FILE;<CertificateFilePath>;<CertificatePassword>

    2. If you dont have local access to server you can also specify with 
      1. BASE64;<CertificateBase64>;<CertificatePassword>
      2. URL;<CertificateFileUrl>;<CertificatePassword>

Configuring Emakin for Google Drive Integration

 


  1. If you want to enable Google Drive; in fileServices add new element as below;

    Code Block
    languagexml
    <fileServices>
      <add clientType="Desktop" />
      <add clientType="Webcam" />
      <add clientType="GoogleDrive" scope="https://www.googleapis.com/auth/drive"/>
    </fileServices>


  2. If you want to allow offline access to API from without user interaction, please add the "offline" scope with space separated.

...

Filter by label (Content by label)
showLabelsfalse
max57
spacesEMK
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "rest","google" , "scope" ) and type = "page" and space = "EMK"in ( "EMKDOC" , "EMKDEV" )
labelsrest google scope

Page Properties
hiddentrue


Related issues