Rw expand |
---|
title | Access Token HTTP Method |
---|
|
Name — Access Token Take note of the name you use, as it is used in the Creating an Approval Business Rule script below. HTTP method — POST Endpoint — https://FQDN/oauth/v2/token Replace "FQDN" with the fully qualified domain name of your EmpowerID server (e.g. sso.empoweriam.com). On the Authentication tab, change the Authentication type to Basic. For the Basic auth profile, create a new one. Click the search icon to the right of the field, and in the Basic Auth Configurations window that opens, click the New button. In the dialog that appears, configure the new Basic Auth Configuration with the following settings. Click Submit to save the profile. Back on the Authentication tab, for Authentication Type, select Basic. For the Basic auth profile, select the newly created EID.
On the HTTP Request tab, add two HTTP Headers. In the list of HTTP Headers, double-click the text Insert a new row and enter these values. Name — Content-Type Value — application/json
Insert another new row and enter these values. Below the HTTP Query Parameters, paste the following code into the Content box. Be sure to replace FQDN with the fully qualified domain name of your EmpowerID server and the GUIDs with values from your OAuth application in EmpowerID.
Code Block |
---|
{
"client_id": "GUID from your Client ID (Key)",
"client_secret": "GUID from your Client Secret",
"redirect_uri": "https://FQDN/webidpforms/oauth/v2",
"grant_type": "password"
} |
Click Submit to return to the main REST Message page.
Rw expand |
---|
title | Default POST HTTP Method |
---|
|
Name — Default POST Take note of the name you use, as it is used in the Creating an Approval Business Rule script below. HTTP method — POST Endpoint — https://FQDN/api/services/v1/workflow/start Replace "FQDN" with the fully qualified domain name of your EmpowerID server (e.g. sso.empoweriam.com). On the Authentication tab, change the Authentication type to No authentication. On the HTTP Request tab, add three HTTP Headers. In the list of HTTP Headers, double-click the text Insert a new row and enter these values. Name — Authorization Value — Bearer ${Token}
Insert another new row and enter these values. Name — Content-Type Value — application/json
Insert a third row and enter these values. Below the HTTP Query Parameters, paste the following code into the Content box. Be sure to replace ServiceNow_AccountStoreID with the Account Store ID from your ServiceNow Account Store in EmpowerID and ServiceNow_OrgZoneID with the OrgZoneID of your ServiceNow location in EmpowerID.
Code Block |
---|
{
"Name": "CreateGroup",
"TaskType":"Workflow",
"InputParameters":
{
"TargetGroup" :
{
"GroupTypeID":9,
"AllowJoinRequests":true,
"Name":"${Name}",
"Description":"${Description}",
"AccountStoreID": ServiceNow_AccountStoreID
},
"TargetOrgZone" : {"OrgZoneID" : ServiceNow_OrgZoneID},
"RequestInitiatedFromServiceNow" : true,
"DecisionOfRequestInitiatedFromSN": "${Decision}"
} |
Click Submit to return to the main REST Message page.
Name — Resume Take note of the name you use, as it is used in the Creating an Approval Business Rule script below. HTTP method — POST Endpoint — https://FQDN/api/services/v1/workflow/start Replace "FQDN" with the fully qualified domain name of your EmpowerID server (e.g. sso.empoweriam.com). On the Authentication tab, change the Authentication type to No authentication. On the HTTP Request tab, add three HTTP Headers. In the list of HTTP Headers, double-click the text Insert a new row and enter these values. Name — Authorization Value — Bearer ${Token}
Insert another new row and enter these values. Name — Content-Type Value — application/json
Insert a third row and enter these values. Below the HTTP Query Parameters, enter the following code into the Content box.
Code Block |
---|
{
"InstanceId": "${WorkflowInstanceID}",
"CorrelationId": "${CorrelationId}",
"Name" : "CreateGroup",
"InputParameters": {
"Decision": "${IsApproved}"
},
"OutputParameters": ["*"]
} |
Click Submit to return to the main REST Message page.
|