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

def ubuntu_sso::auth::AuthorisationClient::ensure_access_token (   self,
  description = None 
)

Returns an access token, either from the keyring or newly acquired.

If a new token is acquired, it will be stored in the keyring
for future use.

Definition at line 408 of file auth.py.

00408                                                    :
        """Returns an access token, either from the keyring or newly acquired.

        If a new token is acquired, it will be stored in the keyring
        for future use.
        """
        try:
            access_token = self.get_access_token()
            self.callback_parent(access_token)
        except NoAccessToken:
            if self.do_login:
                access_token = self.acquire_access_token_if_online(
                    description,
                    store=True)
            else:
                if self.callback_notoken is not None:
                    self.callback_notoken()


class TemporaryTwistedWebServer(resource.Resource):


Generated by  Doxygen 1.6.0   Back to index