rocketchat-jira-trigger icon indicating copy to clipboard operation
rocketchat-jira-trigger copied to clipboard

Detect and log CAPTCHA challenges

Open gustavkarlsson opened this issue 9 years ago • 1 comments

If CAPTCHA is enabled on the JIRA server, it might respond with a 403 message that looks like this: captcha_challenge

These messages should be logged (ERROR level?) to clearly convey that a manual CAPTCHA verification is required.

gustavkarlsson avatar Jun 22 '16 17:06 gustavkarlsson

Essentially this boils down to:

If any call to the JIRA API responds with status code 403, check if the header X-Authentication-Denied-Reason contains CAPTCHA_CHALLENGE. If so, throw an appropriate exception instructing the user to re-login using the browser.

gustavkarlsson avatar Apr 29 '17 11:04 gustavkarlsson