WeiliangXing / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

Decorators should handle both access_type's. #100

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The GAE and Django decorators should handle both access_type of offline and 
online.

If access_type is online then no refresh_token is available and the check in 
has_credentials should be for .access_token_expired() and not .invalid.

Original issue reported on code.google.com by jcgregorio@google.com on 6 Feb 2012 at 9:01

GoogleCodeExporter commented 8 years ago
While even the auth_aware decorator redirects immediately if no user logged in, 
I can't take advantage of using offline access type.

Original comment by virgag...@gmail.com on 10 Apr 2013 at 10:01