Mercurial > public > sg101
comparison gpp/gcalendar/oauth.py @ 455:e44dd53885dc
Working on #220. Can't test locally, so committing in increments.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 30 Jun 2011 02:40:48 +0000 |
parents | 532b9c6f2482 |
children | 9a4bffdf37c3 |
comparison
equal
deleted
inserted
replaced
454:5b2114cec3e3 | 455:e44dd53885dc |
---|---|
60 This function should be called after Google has sent the user back to us | 60 This function should be called after Google has sent the user back to us |
61 after the user authorized us. We retrieve the oauth token from the request | 61 after the user authorized us. We retrieve the oauth token from the request |
62 URL and then upgrade it to an access token. We then return the access token. | 62 URL and then upgrade it to an access token. We then return the access token. |
63 | 63 |
64 """ | 64 """ |
65 logger.info("get_access_token started; retrieving saved request_token...") | 65 logger.info("get_access_token called as '%s'", request.get_full_path()) |
66 | 66 |
67 saved_token = request.session.get(REQ_TOKEN_SESSION_KEY) | 67 saved_token = request.session.get(REQ_TOKEN_SESSION_KEY) |
68 if saved_token is None: | 68 if saved_token is None: |
69 logger.error("saved request token not found in session!") | 69 logger.error("saved request token not found in session!") |
70 return None | 70 return None |