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

Errors when trying to connect to Jira with 2FA #950

Open
ulrichard opened this issue Dec 13, 2022 · 2 comments
Open

Errors when trying to connect to Jira with 2FA #950

ulrichard opened this issue Dec 13, 2022 · 2 comments

Comments

@ulrichard
Copy link

To log in to our corporate Jira, we use 2FA with Okta or Microsoft. I don't know when it was set up, so I tried with SESSION and with TOKEN.

For SESSION, I get this error:
Error: error creating token 404: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: https://jira.xxxx.xx//rest/auth/1/session</message></status>

And for TOKE it looks like this:
Error: Project XXX doesn't exist on https://jira.xxxx.xx, or authentication credentials for (xxxx@xxxxx.xx) are invalid

Are such SSO setups supported, or only setups with email/password?

@MichaelMure
Copy link
Owner

I don't think the Jira bridge does that: https://github.com/MichaelMure/git-bug/blob/master/bridge/jira/config.go

I'm not using Jira so it's unlikely I'll work on that, would you give it a try? That said, I suppose using a SSO means that the credential would expire quickly and would need to be renew periodically? That's not impossible but kind of an hassle. Maybe that would require a new command under bridge auth? renew ? sso ?

@ulrichard
Copy link
Author

I tried the curl command

curl \
  --data '{"username":"<username>", "password":"<password>"}' \
  --header "Content-Type: application/json" \
  --request POST \
  <serverUrl>/rest/auth/1/session

from
https://github.com/MichaelMure/git-bug/blob/master/doc/jira_bridge.md
and got the following error:
{"errorMessages":["Login failed"],"errors":{}}
Hence my hopes are low.

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

2 participants