My typical workflow is that I develop on localhost, but with Google Apps Marketplace this hasn't been possible. OpenID works fine, but access to Data APIs via Oauth results in errors.

Token invalid - Invalid token: ACL not found for domain: 358xxxxxxxxx and consumer: 736xxxxxxxxx

Currently I have been using the following workflow, but it is very tiresome.

local develop » local push to github » remote pull from github » remote test » repeat

Is there a way to develop locally or another suggested workflow?


Solution:

A mashup of @koma and @JTeagle suggestions, I have multiple branches with Oauth keys in each config respective of the branch. I also created a unique localhost domain my_project.dev which satisfies Google's requirements (since their localhost trigger wasn't working for me)

有帮助吗?

解决方案

I am not sure what github as to do with it, but if I understand well, it is difficult to do OAUTH on localhost. That is indeed cumbersome.

My solution for this problem is to register my dynamic DNS domainname in the Google Api Console and then do port forwarding on the router to my development machine.

This way, your development environment can do all the OAUTH requests and the callbacks from Google hit the router, and I can debug them.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top