comparison gpp/gcalendar/oauth.py @ 453:532b9c6f2482

Working on #220. Can't test locally, so committing in increments.
author Brian Neal <bgneal@gmail.com>
date Thu, 30 Jun 2011 02:22:16 +0000
parents c77359d0d951
children e44dd53885dc
comparison
equal deleted inserted replaced
452:c77359d0d951 453:532b9c6f2482
31 to after the user has authorized our application access to their data. 31 to after the user has authorized our application access to their data.
32 32
33 This function only supports RSA-SHA1 authentication. Settings in the Django 33 This function only supports RSA-SHA1 authentication. Settings in the Django
34 settings module determine the consumer key and path to the RSA private key. 34 settings module determine the consumer key and path to the RSA private key.
35 """ 35 """
36 logger.info("fetch_auth started...") 36 logger.info("fetch_auth started; callback url='%s'", callback_url)
37 client = CalendarResourceClient(None, source=USER_AGENT) 37 client = CalendarResourceClient(None, source=USER_AGENT)
38 38
39 with open(settings.GOOGLE_OAUTH_PRIVATE_KEY_PATH, 'r') as f: 39 with open(settings.GOOGLE_OAUTH_PRIVATE_KEY_PATH, 'r') as f:
40 rsa_key = f.read() 40 rsa_key = f.read()
41 logger.info("read RSA key; now getting request token") 41 logger.info("read RSA key; now getting request token")