Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jira Server/Data Center authentication with token not working #3851

Open
julienfoenet opened this issue Jan 30, 2025 · 0 comments
Open

Jira Server/Data Center authentication with token not working #3851

julienfoenet opened this issue Jan 30, 2025 · 0 comments

Comments

@julienfoenet
Copy link

julienfoenet commented Jan 30, 2025

With my team, we are testing the integration with Jira and the indexing of Jira issues from a specific Jira project. We have Jira hosted on our own (Jira Data Center, not Jira Cloud). Cloud Jira requires to authenticate using an email + password, while self-hosted Jira requires only a Personal Access Token. When we try to create the connector and indexing using our token, we see an error 401 Unauthorized, it seems that the wrong authentication method is used connect to Jira API.
This is due to the fact that in the connector code when we load the credentials, we populate the creds dict with two keys "jira_user_email" and "jira_api_token", and right after in method build_jira_client, we do a switch on the presence of the key "jira_user_email" (which is always there) to decide what authent method to use.
I think the switch should be made instead on whether user_email is provided by the user or not.

PR link:
#3852

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant