Set up the Google Cloud Functions spoke

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 6분
  • Integrate the ServiceNow instance and Google Cloud Functions account by creating a custom OAuth application in Google Cloud Platform to authenticate ServiceNow requests.

    시작하기 전에

    • Request an Integration Hub subscription.
    • Activate the Google Cloud Functions spoke.
    • Role required: admin.

    Configure the Google Cloud Functions application

    Create a custom OAuth application in your Google Cloud Platform account to enable OAuth 2.0 authentication with the Google Cloud Functions spoke.

    이 태스크 정보

    Complete these steps from the Google Cloud Platform. See the Google Cloud Platform product documentation for instructions on creating and configuring custom applications.

    프로시저

    1. Register a new custom application by navigating to https://console.cloud.google.com/ and creating a project with your administrator credentials.
    2. Open your new project and, in the APIs & Services menu, select OAuth consent screen.
    3. Enter the application name, specify the Authorized domain service-now.com, and select Save.
    4. From the APIs & Services menu, select Credentials, and select Create OAuth client ID from the Create credentials list.
    5. Select the application type OAuth client ID.
    6. Enter the following Authorized redirect URI: https://<instance>.service-now.com/oauth_redirect.do and select Create.
    7. Copy your client ID and client secret from the OAuth client window to a text file so that you can use them when you Register Google Cloud Functions as an OAuth provider.
      The client ID and secret can be accessed in the Google APIs & Services interface. Select Credentials and select the OAuth 2.0 client ID name.

    Register Google Cloud Functions as an OAuth provider

    Use the information generated during the Google Cloud Functions application configuration to register Google Cloud Functions as an OAuth provider and allow the ServiceNow instance to request OAuth 2.0 tokens.

    시작하기 전에

    Role required: admin

    프로시저

    1. Navigate to All > System OAuth > Application Registry.
    2. Open for the record, Google Cloud Functions.
    3. On the form, fill these values.
      표 1. Application Registries form
      Field Description
      Client ID Client ID of the Google Cloud Functions application.
      Client Secret Client Secret of the Google Cloud Functions application.
      OAuth API Script OauthGoogleCloudFunctionsUtils is selected by default.
      Authorization URL The OAuth authorization code endpoint: https://accounts.google.com/o/oauth2/auth.
      Token URL The OAuth server token endpoint: https://oauth2.googleapis.com/token.
      Redirect URL OAuth callback endpoint in this format: https://<instance>.service-now.com/oauth_redirect.do. If left blank, the instance auto-generates the URL.
    4. Right-click the form header, and click Save.

    Create a credential record for the Google Cloud Functions spoke

    Create a credential record for the Google Cloud Functions application. The Google Cloud Functions spoke connection and credential alias uses these credentials to authorize actions.

    시작하기 전에

    Role required: admin.

    프로시저

    1. Navigate to All > Integration Hub > Connections & Credentials.
    2. Open the record, GoogleCloudFunctions.
    3. In the Credentials tab, click New.
      The system displays this message: What type of Credentials would you like to create?
    4. Select OAuth 2.0 Credentials.
    5. On the form, fill these values.
      표 2. OAuth 2.0 Credentials form
      Field Description
      Name Name to identify the credential record. For example, Google Cloud Functions Cred.
      OAuth Entity Profile Select the default OAuth entity profile, Google Cloud Functions default_profile.
      Credential alias Credential alias associated with this record. The default alias record, sn_gcp_cf_spoke.GoogleCloudFunctions is selected.

      Credential record for Google Cloud Functional spoke.

    6. Right-click the form header and click Save.
    7. To generate the OAuth token, click the Get OAuth Token related link.