How does jira get the current username and password

zhaoyawei June 11, 2018

How does jira get the current username and password

1 answer

0 votes
Bhushan Nagaraj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2018

ey,

If you are trying to do this using the Java SDK, it uses the ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser() method.

Refer to the docs at 

https://docs.atlassian.com/software/jira/docs/api/7.6.1/index.html?com/atlassian/jira/component/ComponentAccessor.html

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/security/JiraAuthenticationContext.html

Hope that helps. 

zhaoyawei June 11, 2018

How does jira get the current  password?

Alexey Matveev
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.
June 11, 2018

@zhaoyawei You would need to elaborate what you mean. Answering your question, Jira gets a password from user input. But I guess, it is not what you are asking.

zhaoyawei June 11, 2018

Click button in the jirra system I want to pass the user's name and password,I was jira's secondary development call interface requires a user name and password.

Nic Brough -Adaptavist-
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.
June 12, 2018

It is still not clear what you mean.  What is a "secondary development call interface"?  What do you mean by "pass user's name and password"?

But, I suspect you might be thinking that Jira has the user's password stored somewhere so you can use it for a log-in to something.  That is a totally insecure thing to do and Jira never stores passwords.  So there is nothing to "get"

If you could explain what you are trying to do, we might be able to explain how.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events