'True if for the logged in user there are valid access Credentials.
Must only be called from with a webapp.RequestHandler subclassed method
that had been decorated with either @oauth_required or @oauth_aware.'

def has_credentials(self):

    return ((self.credentials is not None) and (not self.credentials.invalid))
