We're updating the issue view to help you get more done. 

Improve Ares "unauthorized" error message to give hints about visiting the PhoneGap website in a browser to log out and log in again (and accept the terms of use)

Description

I was able to install new Ares release 0.2.11 without issues.

But there was a change at PhoneGap (which I did not know about).
=> Privacy Policy: Last updated December 20, 2013

But when running the new Ares version I could not connect to my PhoneGap Build account using my existing Adobe ID. When clicking on the Ares button "Check" after a few seconds it just returns an "unauthorized" error. Ares console prints:

ares http phonegap POST /phonegap/token? 401 915ms - 12b
ares http phonegap
ares WARN phonegap bdPhoneGap WARN BdPhoneGap#getToken() Unauthorized
ares WARN phonegap bdPhoneGap WARN BdPhoneGap#errorHandler#_respond(): HTTP Error: Unauthorized
ares WARN phonegap bdPhoneGap WARN BdPhoneGap#errorHandler#_respond(): at new HttpError (C:\Users\xxx\node_modules\ares-ide\hermes\lib\httpError.js:11:8)
ares WARN phonegap bdPhoneGap WARN BdPhoneGap#errorHandler#_respond(): at Bd PhoneGap.<anonymous> (C:\Users\xxx\node_modules\ares-ide\hermes\bdPhoneGap.js:147:24)

Strange - in my web browser I was able to login at PhoneGap and I could browse my app folders. (Somehow I was still logged in - and did not need to reenter my password.)

But then I decided to log out from the PhoneGap site and again to log in.
Now an error dialog appeared and I now I was asked to accept new terms of Use:

Could not authorize you because "Adobe Terms".
Adobe General Terms of Use

Last updated October 16, 2012. Replaces the May 7, 2012 version in its entirety.
Privacy Policy: Last updated December 20, 2013
.. ...
[x] I have read and agree to the Terms of Use and Privacy Policy (UPDATED).

Now I accepted the new terms and I was in again.

After this procedure also the Ares PhoneGap Build Check did work fine without any issues.

I think the Ares "unauthorized" error message should be improved to give hints about visiting the PhoneGap website in a browser to log out and log in again (and accept the terms of use).

I think the Ares Accounts dialog for PhoneGap Build should offer an additional button next to the "Check" button to "Open PhoneGap Build in a browser" or put the PhoneGap Icon here.
Such a button would be helpful anyway because this is easier to understand than clicking on your account details screen to open that website what you can do today.

Environment

win7

Status

Assignee

RafikA

Reporter

Martin Hovekamp

Story Points

15

Epic Link

Components

Sprint

Affects versions

ares-0.2.11

Priority

Medium