I am trying to send get request from postman to get pullrequest details from bitbucket.To that service i am sending cookies in header.
GET URL:-
https://jdhd.dhdh.com/rest/api/1.0/projects/LP/repos/Jenkins/pull-requests
Header:-
Cokkies:'BITBUCKETSESSIONID=abc; _atl_bitbucket_remember_me=abc; JSESSIONID=acb'
X-AUSERNAME:'abc'
X-AUSERID:'26562'
How to get value value for BITBUCKETSESSIONID,_atl_bitbucket_remember_me,JSESSIONID.
If i am not passing cookies in header i am getting below error.
"exceptionName": "com.atlassian.bitbucket.AuthorisationException"
To use cookies you'd need a good way to extract such values from a logged in browser session. Chrome's developer tools has a way to do this from the network tab (right click on a request to copy a representative curl command, including auth).
However, this is not ideal, as cookie based auth isn't well suited for scripted automation. Instead, consider creating and using a personal access token.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.