Gracefully handle disabled Google+ API access #1075

ginatrapani opened this Issue Oct 30, 2011 · 0 comments


None yet
1 participant

ginatrapani commented Oct 30, 2011

If the user sets up a Google API project on 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.

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:

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