Working closely on Jira & Confluence REST API's
Jira API to authenticate user : https://tickets.ingramcontent.com/rest/auth/1/session
So I've found the respective REST API for Jira for authenticating a jira_user...
But im unable to find a suitable REST API CONFLUENCE which authenticates a conf_user...& need such that satisfies the same goal such as Jira REST API
Is there such Confluence REST API which authenticates a conf_user?
If Not....how do I find out a work-around to authenticate a conf_user ?
Thanks in advance.
My motive just was to validate the confluence user...which I am able to do very easily in the case of Jira...since jira has its own authenticateUser ReST API : Jira Login
But there isn't any such dedicated ReST API for confluence login,
or to authenticate confluence user at the moment.
what u mentioned above worked for me. :)
curl -u admin:admin
curl -u email@example.com:password123 -X GET -H "Content-Type: application/json" https://yourDomainNamefirstname.lastname@example.org
writing down my small detailed findings for others who come across this same scenario.
The above curl command when executed internally first validates the credentials mentioned, which in turn if are valid then invokes the confluence url mentioned in the later part of the curl command.
therefore, we get a
"200 OK" response on success & valid credentials.
"401 unauthorized" response is for INVALID credentials, i.e invalid userName or password provided.
"403 forbidden" i.e the API invoked was prompted for a CAPTCHA CHALLENGE. therefore the api invocation & curl command execution failed and the response is 403...here the credentials are valid but due to captcha challenge it gave a 403 error. this might be handled of admin level for those user to disable the captcha.
the Confluence ReST API used is simple : get user
Initially I was really struggling...thought why couldn't confluence just expose a API for login/authenticateUser ... simply would have helped people n saved time. Anyways this does my intended work.
I actually saw that page & overlooked it...at that time was just hunting for some dedicated API for this purpose. anyways..
Thanks for the Pointer.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs