Skip to main content
Nintex Community Menu Bar

When making a request to Jira I need to pass a token generated by OpenAM in a cookie.

 

I tried to pass it into header, but apparantly K2's HttpHeader Smart Object  ignores parameter named 'Cookie'.

 

{  "$type": "SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeaderd], SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null",  "$values": "    {      "$type": "SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null",      "Name": "Cookie",      "Value": "iPlanetDirectoryPro=AQIC5wM2LY4SfcwDu2SHOsUhCCJuMz0juXhBryDpNw8Ba1U.*AAJTSQACMDEAAlNLABQtNDQ5NzI1NjY5Mjg3NjA4MDE3MA..*"    },    {      "$type": "SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null",      "Name": "content-type",      "Value": "application/json"    }  ]}

Hi  @Sulzanoks;

 

Could you perhaps look at the issue of case sensitivity(https://www.reddit.com/r/shortcuts/comments/a5agd4/how_to_ignore_case_sensitivity_in_a_rest_api/)

(https://stackoverflow.com/questions/11311893/is-the-name-of-a-cookie-case-sensitive)

 

Additionally drill into this link:-(https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-cookie-based-authentication/)

 

Should you feel that this post is of use and or an accurate solution to the raised question, I kindly encourage you to mark it as such using the 'Mark as Solution', 'Kudo' andor ‘Me Too’ options.

 

Regards;

Widson.


Reply