In my current organization i have a layer of authentication called BSAFE.
Credentials to login to JIRA and BSAFE are same.
TM4J API Request Details:
https://jira.xxxxx.com/rest/atm/1.0/testcase/xxxx-T41
Simple Get Call with below two request headers
header1 -> "Authorization", "Basic ...."
header2 -> "Cookie", "OBBasicAuth=fromDialog"
Response :
Company specific HTML page asking to login with BSAFE (Employee Self Service Login)
JIRA API Request Details:
https://jira.xxxxx.com/rest/api/2/issue/xxxx-1205
Simple Get Call with below two request headers
header1 -> "Authorization", "Basic ...."
header2 -> "Cookie", "OBBasicAuth=fromDialog"
Response :
Jira ticket details showing in json format
My Observations/Assumption:
Every API call for JIRA and TM4J need a cookie named ObSSOCookie on company specific domain.
JIRA API's are able to generated ObSSOCookie from basic OAuth and appending it for every call from API.
TM4J API's are unable to generated ObSSOCookie from basic authentication