The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Is it possible to authenticate a user given a username and password using the REST API?

Bradley
July 14, 2022

I was looking to see if, given a user's username and password, a request could be made to the confluence API that will verify whether or not the user's username and password combination is valid and return a value based upon that.

Is there any such endpoint/protocol?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Bill Bailey
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 Champions.
July 15, 2022

I would suggest solving the problem differently, and bringing up SSO using an identity manager. Your secondary application can then just query the identity manager.

Bradley
July 26, 2022

Unfortunately this ended up being the solution. Although I did not end up using SSO, I was able to solve the problem by refactoring the workflow a bit. After providing authentication credentials my application attempts a GET request of some data from the Confluence instance, which will 200 if the credentials are valid or give a specific error if invalid. Thanks for the help!

0 votes
Florian Bonniec
Community Champion
July 14, 2022

Hi

 

Not sure what you want to do but you can do any REST Call that reauired authentication. If it returned http 401 it means that password/ username are wrong.

 

I would use this call.

https://docs.atlassian.com/ConfluenceServer/rest/7.18.3/#user-getCurrent

Bradley
July 26, 2022

While I did not ultimately go with this solution to resolve the issue, I was able to utilize getCurrent elsewhere in the process. Thank you for this reference!

TAGS
AUG Leaders

Atlassian Community Events