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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.