Google Drive OAuth Connector - Alfresco Federation Services - 3.2 - 3.2 - Ready - Alfresco - external - Alfresco/Alfresco-Federation-Services/3.2/Alfresco-Federation-Services/Configure/Connectors/Google-Drive-and-Gmail/Google-Drive-OAuth-Connector - 2025-03-04

Alfresco Federation Services

Platform
Alfresco
Product
Alfresco Federation Services
Release
3.2
License

Use this method if you wish to authenticate as a specific user to access files and folders.

  1. Navigate to the Google Cloud Consoleand sign in with your organisational Google account,
  2. Select your project from the list.
  3. Click APIs and Services in the sidebar.

    You will now need to create an OAuth Consent Screen that will display when users attempt to authenticate using the app:

  4. Setting up the OAuth Consent Screen
    1. Click OAuth consent screen in the sidebar
    2. Set user type to External
    3. Set your app name. It can be whatever you wish unless…
    4. If you intend to use the Google Vision Text Extractor name the application Federation Services-VisionTextExtractor/1.0 as that will affect the outcome of the vision tasks (Though those will only work if your project has a linked billing account and billing enabled).
    5. Set the support email as the one you used to log in
    6. At the bottom, fill in the support email address.
    7. The support email will be the email the user is directed to when they’re directed to authorise Federation Services to transfer data.
    8. Click Save and Continue
  5. Set up scopes:
    1. Click Add Scope and check .../auth/drive
  6. Create OAuth Credentials
    1. Return to the APIs and Services Dashboard.
    2. Click Credentials.
    3. Click Create Credentials.
    4. Click OAuth Client Id.
    5. On the next screen, select Web Application.
    6. Give the credentials a name.
    7. Under Authorised Redirect URIs, add the following:
       http://{SIMFLOFY_SERVER}/3sixty-admin/authconn/oauthcb
      

      For example. If you’re running Federation Services on a local machine http://localhost:8080/3sixty-admin/authconn/oauthcb

      Note: For Manage In Place, the domain server has to be public server since Google Drive only supports public server or localhost.
      Note: 127.0.0.1 will not work, but localhost will.
    8. Click Create.
    9. Your new credentials will appear under OAuth 2.0 Client IDs. Click the Download button on the right and retrieve the Client ID and Client Secret from the downloaded JSON file.