Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using seraph.confluence cookie to with curl

אבי אליהו
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2019

Hi,

I'm created an application that runs on Linux, automatically generate content and upload it to wiki via REST API using curl library.

In order to connect and upload the content, the users have to provide their password - each time they runs the application - something that I want to avoid.

In addition, I prefer not to manage the users password in anyway in my application.

I've read about the available authentication methods and found that there is a way to authenticate using the long lived cookie named "seraph.confluence".

https://confluence.atlassian.com/doc/confluence-cookies-160794071.html

however, it seems that this option is only available when using modern browsers that runs javascript code.

 

Is there any way to get the seraph.confluence cookie and use it when running w/ curl based application?

 

Thanks a lot
AVi

1 answer

0 votes
Andrew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2019

Hi @אבי אליהו ,

Maybe I misunderstand question, but You would like use cookie 'remember me' functionality in curl?

How I know curl can use cookie, but it is separate application. Each application have it's own cookie storage, e.g. firefox can't get access to cookie in chrome.

That mean You need first log-in to conf use curl (with turn on cookie) to give'seraph.confluence' value or use value from browser, but add it to curl manually.

For basic auth You can encode password to base64.

https://developer.atlassian.com/server/jira/platform/basic-authentication/

Also for cloud exist 'api_token' maybe some similar exist to server.

B.R.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events