How does jira get the current username and password
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 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.
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.
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.
It looks like you're new here. Sign in or register to get started.