Errors when trying to connect to Jira with 2FA
ulrichard opened this issue · comments
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?
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
?
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.