Set up the YouTube spoke
Integrate the ServiceNow instance and YouTube account by creating a custom OAuth application in Google Cloud Platform to authenticate ServiceNow requests.
Before you begin
- Request an Integration Hub subscription.
- Activate the YouTube spoke.
- Role required: admin.
Configure the YouTube application
Create a custom OAuth application in your Google Cloud Platform account to enable OAuth 2.0 authentication with the YouTube spoke.
Before you begin
Role required: admin.
About this task
Complete the Create a Google Cloud project steps from the Google Cloud Platform. See the Creating and managing projects product documentation for instructions on creating and configuring custom applications.
Procedure
Register a new custom application and open it.
Navigate to https://console.cloud.google.com.
Create a project with your administrator credentials.
Open the project.
Provide the OAuth authorized domain name.
From the APIs & Services menu, select OAuth consent screen.
Enter the application name.
Specify the Authorized domain
service-now.com.Click Save.
Create the credentials.
From the APIs & Services menu, select Credentials.
Select Create OAuth client ID from the Create credentials list.
Select the application type OAuth client ID.
Enter the following Authorized redirect URI:
https://<instance>.service-now.com/oauth_redirect.doand click Create.Copy your client ID and client secret to a text file so that you can use them when you Register YouTube as an OAuth provider.
Tip: You can always access the client ID and secret in the Google APIs & Services interface by clicking Credentials and selecting the OAuth 2.0 client ID name.
Register YouTube as an OAuth provider
Use the information generated during the YouTube application configuration to register YouTube as an OAuth provider and allow the ServiceNow instance to request OAuth 2.0 tokens.
Before you begin
Role required: admin
Procedure
Navigate to All > System OAuth > Application Registry.
Open for the record, Youtube.
On the form, fill these values.
Field Description Client ID Client ID of the YouTube application. Client Secret Client Secret of the YouTube application. Redirect URL OAuth callback endpoint in this format: https://<instance>.service-now.com/oauth_redirect.do.Ensure that these scopes are available in the OAuth Entity Scopes tab.
Name OAuth scope YouTube Partner https://www.googleapis.com/auth/youtubepartnerYouTube Reporting S1 https://www.googleapis.com/auth/yt-analytics.readonlyYouTube Reporting S2 https://www.googleapis.com/auth/yt-analytics-monetary.readonlyYouTube Scope https://www.googleapis.com/auth/youtubeYouTube Scope Force SSL https://www.googleapis.com/auth/youtube.force-sslRight-click the form header, and click Save.
Create a credential record for the YouTube spoke
Create a credential record for the YouTube application. The YouTube spoke connection and credential alias uses these credentials to authorize actions.
Before you begin
Role required: admin.
Procedure
Navigate to All > Connections & Credentials > Connections & Credential Aliases.
Open record for the YouTube spoke, for example,
YouTube.In the Credentials tab, click New.
Select OAuth 2.0 Credentials.
Enter a unique name for the credential, for example,
Youtube_Cred.Click the OAuth Entity Profile search icon (
Search icon\) and select the profile with the name of the OAuth application registry you configured when you registered the YouTube service as an OAuth provider.
See [Register YouTube as an OAuth provider](youtube-setup.md) for more information.
Right-click the form header and click Save.
Click Get OAuth Token.