How to debug OAuth Locally

53 views
Skip to first unread message

Joe

unread,
Sep 17, 2012, 5:28:34 PM9/17/12
to google-apps-develo...@googlegroups.com
Hello,

How to debug OAuth locally. Or is the only option to upload to appengine and test it. Any links on this will be very helpful.

Thanks,
Joe.

Apps Challenge

unread,
Sep 17, 2012, 6:42:59 PM9/17/12
to google-apps-develo...@googlegroups.com
Hello Joe,
You should ask your question on Stackoverflow.com.
Be sure to search for the answer first before posting a new question.
regards


--
You received this message because you are subscribed to the Google Groups "Google Apps Developer Challenge 2012" group.
To unsubscribe from this group, send email to google-apps-developer-ch...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roy Smith

unread,
Oct 10, 2012, 12:36:45 AM10/10/12
to google-apps-develo...@googlegroups.com
By 'locally' I guess you mean using the appengine dev server.

No problem, you need to do three things:-
- edit your /etc/hosts (or windoze equivalent) to create an entry 127.0.0.1 mydevserver.somedomain.com
- add your url's based on that domain to API console, eg mydevserver.somedomain.com:8888/oauthredirect
- have your code detect if it's running on the dev server and use the appropriate redirect url

I actually sniff the URL and use that to modify the redirect url as that way I can also test on dev.mykillerapp.appspot.com, live.mykillerapp.appspot.com as well as mykillerapp.appspot.com

best
Roy
Reply all
Reply to author
Forward
0 new messages