Configure an Amazon Signature based Custom Algorithm
Generate the Amazon Signature based data needed to authenticate to a web service by running script.
始める前に
- JavaScript knowledge
- REST knowledge
- Target web service API knowledge
- Connection, credential, and alias knowledge
- Role required: Developer
このタスクについて
Use a connection and credential alias and Amazon Signature Version 4 based algorithm for authentication.
手順
タスクの結果
Based on the selected scripts and authentication algorithm, the configured credentials (Access Key ID and Secret Access Key) or user's credentials (Access Key ID, Secret Access Key, and Session Token) generates a Amazon V4 signature that is sent as outbound request from ServiceNow to the provider (in this case AWS).
REST step with AWS
Action: Get AWS Regions
- Credentials Alias: The alias that is created for AWS.
- Base URL: Base URL details from AWS.
- HTTPS Method: In this case it is GET method.
- Query Parameters: Action as DescribeRegions.
You can test the action, the associated regions are displayed. The response body is as follows:
Amazon V4 is defined with standard set of algorithm that supports authentication mechanism. This algorithm when used adds the signature as authorization header for authentication (HTTP request) using REST step.