Logo Search packages:      
Sourcecode: ubuntu-sso-client version File versions  Download package

def ubuntu_sso::main::LoginProcessor::clear_token (   self,
  realm,
  consumer_key 
)

Remove the currently stored OAuth token from the keyring.

Definition at line 96 of file main.py.

00096                                               :
        """Remove the currently stored OAuth token from the keyring."""
        self.realm = str(realm)
        self.consumer_key = str(consumer_key)
        (request_token_url, user_authorisation_url,
          access_token_url, consumer_secret) =  self.get_config_urls(self.realm)
        from ubuntu_sso.auth import AuthorisationClient
        client = AuthorisationClient(self.realm,
                                     request_token_url,
                                     user_authorisation_url,
                                     access_token_url,
                                     self.consumer_key, consumer_secret,
                                     callback_parent=self.got_token,
                                     callback_denied=self.got_denial,
                                     callback_notoken=self.got_no_token,
                                     callback_error=self.got_error)
        gobject.timeout_add_seconds(1, client.clear_token)

    def error_handler(self, failure):


Generated by  Doxygen 1.6.0   Back to index