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

def ubuntu_sso::auth::AuthorisationClient::__init__ (   self,
  realm,
  request_token_url,
  user_authorisation_url,
  access_token_url,
  consumer_key,
  consumer_secret,
  callback_parent,
  callback_denied = None,
  callback_notoken = None,
  callback_error = None,
  do_login = True,
  keyring = gnomekeyring 
)

Create an `AuthorisationClient` instance.

@param realm: the OAuth realm.
@param request_token_url: the OAuth request token URL.
@param user_authorisation_url: the OAuth user authorisation URL.
@param access_token_url: the OAuth access token URL.
@param consumer_key: the OAuth consumer key.
@param consumer_secret: the OAuth consumer secret.
@param callback_parent: a function in the includer to call with a token

The preceding parameters are defined in sections 3 and 4.1 of the
OAuth Core 1.0 specification.  The following parameters are not:

@param callback_denied: a function to call if no token is available
@param do_login: whether to create a token if one is not cached
@param keychain: the keyring object to use (defaults to gnomekeyring)

Definition at line 106 of file auth.py.

                                      :
        """Create an `AuthorisationClient` instance.

        @param realm: the OAuth realm.
        @param request_token_url: the OAuth request token URL.
        @param user_authorisation_url: the OAuth user authorisation URL.
        @param access_token_url: the OAuth access token URL.
        @param consumer_key: the OAuth consumer key.
        @param consumer_secret: the OAuth consumer secret.
        @param callback_parent: a function in the includer to call with a token

        The preceding parameters are defined in sections 3 and 4.1 of the
        OAuth Core 1.0 specification.  The following parameters are not:

        @param callback_denied: a function to call if no token is available
        @param do_login: whether to create a token if one is not cached
        @param keychain: the keyring object to use (defaults to gnomekeyring)

        """
        self.realm = realm
        self.request_token_url = request_token_url
        self.user_authorisation_url = user_authorisation_url
        self.access_token_url = access_token_url
        self.consumer = oauth.OAuthConsumer(consumer_key, consumer_secret)
        self.callback_parent = callback_parent
        self.callback_denied = callback_denied
        self.callback_notoken = callback_notoken
        self.callback_error = callback_error
        self.do_login = do_login
        self.request_token = None
        self.saved_acquire_details = (None, None, None)
        self.keyring = keyring
        logger.debug("auth.AuthorisationClient created with parameters "+ \
           "realm='%s', request_token_url='%s', user_authorisation_url='%s',"+\
           "access_token_url='%s', consumer_key='%s', callback_parent='%s'",
           realm, request_token_url, user_authorisation_url, access_token_url,
           consumer_key, callback_parent)

    def _get_keyring_items(self):


Generated by  Doxygen 1.6.0   Back to index