I am having trouble accessing "protected resources" through OAuth.
I have an AppEngine application (services-systemical) registered
through my Google Apps domain (systemical.com), a CNAME pointing to my
application ("services.systemical.com" , working perfectly with my
other non-Oauth services).
I have registered my application and got the "consumer key" and
"consumer secret" for "services.systemical.com".
With my desktop client application (I am using Leah Culver's oauth
v1.0a python library on the client side): I am able to get a "request
token", have the user "authorize" the application, upgrade the token
to an "access token" (with the verification code).
Now the issue is: when I make an OAuth HTTP POST (body containing the
request data) AppEngine always raises an "oauth.OAuthRequestError". I
am not doing anything fancy for starters:
class EndPoint(webapp.RequestHandler):
def post(self, fragment):
body=self.request.body
headers=self.request.headers
try:
user = oauth.get_current_user()
logging.info("EndPoint.post: fragment(%s) data=%s" %
(fragment, body))
except oauth.OAuthRequestError, e:
logging.info("EndPoint.post: headers: %s" % headers)
logging.info("EndPoint.post: body: %s" % body)
What step could I be missing? Any help would be greatly appreciated!
Thanks a million!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.