Gracefully handle disabled Google+ API access #1075

Closed
ginatrapani opened this Issue Oct 30, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@ginatrapani
Owner

ginatrapani commented Oct 30, 2011

If the user sets up a Google API project on code.google.com but does not enable the Google+ API (that instruction is buried in the text), ThinkUp should gracefully handle the problem.

In that case, after attempting to auth your Google account, the JSON that gets returned is:

stdClass Object ( [error] => stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [domain] => usageLimits [reason] => accessNotConfigured [message] => Access Not Configured ) ) [code] => 403 [message] => Access Not Configured ) )

The GooglePlusConfigurationController should check for that error structure and give an informative error message instructing the user to turn G+ access on, with a link to a new troubleshooting documentation page with a screenshot.

https://skitch.com/ginatrapani/grwwb/google-apis-console

This check should happen around line 116, ie, the app code shouldn't assume displayName and id come back in the $gplus_user object.

Related mailing list thread:

http://groups.google.com/group/thinkupapp/browse_thread/thread/35323a725c5c8ac3

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