Strategery-Inc / jira-harvest-time-tracker

Track time in Harvest directly from your JIRA issues!
12 stars 0 forks source link

Invalid Authorization Request bad_request #92

Closed carrchr closed 5 years ago

carrchr commented 5 years ago

Describe the bug Sign Into Harvest from JIRA issue fails with Invalid Authorization Request bad_request

To Reproduce Steps to reproduce the behavior:

  1. Download & Install Add-on
  2. Configure Add-on with Oauth info created in harvest app.com
  3. Click "Sign Into Harvest" button on a JIRA issue
  4. New browser window opens up that is apparently trying to login to harvest which then displays an error Invalid Authorization Request bad_request https://michigansoftwarelabs.harvestapp.com/oauth2/authorize?response_type=token&client_id={redacted}&prompt=none&state=test-state&redirect_uri=https://{redacted}/plugins/servlet/com.strategery.jira-harvest/auth-popup

Expected behavior Login to Harvest

Screenshots screenshot

Browser Console Logs Nothing related to JIRA or Harvest

Please complete the following information:

Additional context tried in Safari (with which I had never logged in to harvestapp.com, I was prompted to sign-in to Harvest, I clicked use Google (that is what we are trying out, using our G Suite credentials) and then ended up at the same Invalid Authorization Request bad_request

gsomoza commented 5 years ago

Hi Chris, thanks for the detailed report. I'll do what I can to help you ASAP. Could you please email the redacted info (at least the contents for the redirect_uri parameter) to gabriel (at) strategery (dot) io?

carrchr commented 5 years ago

Hello Gabriel- turns out that the authentication from our JIRA to our new Harvest Time Tracking account wasn't working because when I created the OAuth key I was not ad "admin user" on Harvest. We re-created the OAuth credentials and re-configured our JIRA server and now it works.

gsomoza commented 5 years ago

Thanks a lot for getting back to us on this: it's good to know about this important "gotcha"!