Exemple #1
0
 def init_credentials(self):
     '''Initializes the credentials to use for accessing this service.'''
     try:
         if __debug__: log('initializing credentials')
         GoogleCredentials()
     except Exception as ex:
         raise AuthFailure(str(ex))
Exemple #2
0
 def init_credentials(self, credentials_dir = None):
     '''Initializes the credentials to use for accessing this service.'''
     # Haven't been able to get this to work by reading the credentials:
     # self.credentials = GoogleCredentials(credentials_dir).creds()
     if __debug__: log('Getting credentials from {}', credentials_dir)
     try:
         GoogleCredentials(credentials_dir)
     except Exception as ex:
         raise AuthenticationFailure(str(ex))
Exemple #3
0
 def init_credentials(self, credentials_dir=None):
     '''Initializes the credentials to use for accessing this service.'''
     # Haven't been able to get this to work by reading the credentials:
     # self.credentials = GoogleCredentials(credentials_dir).creds()
     if __debug__: log('Getting credentials from {}', credentials_dir)
     GoogleCredentials(credentials_dir)