Forums

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

Authentication Api Java

gia01020304 February 14, 2019

Hello, I hava a problem with java api

I want to get username and password of current login

I use ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(). It just gets the username, can't get the password

1 answer

0 votes
Andy Heinzer
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.
February 15, 2019

Jira's APIs are not designed to be able to provide you with an account's password.  Check out @[deleted] 's response on a related thread: https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-get-the-logged-in-user-s-password-for-integration-purpose/qaq-p/479853

No there isnt. Passwords are one-way hashed, it would be pretty poor if it were exposed...

some background on hashing is:

https://developer.atlassian.com/display/CONFDEV/Password+Hash+Algorithm

and

https://answers.atlassian.com/questions/130848/what-is-the-password-encryption-algorithm-used-in-jira

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events