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

Detect and log CAPTCHA challenges #5

Open
gustavkarlsson opened this issue Jun 22, 2016 · 1 comment
Open

Detect and log CAPTCHA challenges #5

gustavkarlsson opened this issue Jun 22, 2016 · 1 comment

Comments

@gustavkarlsson
Copy link
Owner

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
Copy link
Owner Author

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.

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

No branches or pull requests

1 participant