c.l.i.o.IOAuthConsumer(Interface) : interface documentation

Part of canonical.launchpad.interfaces.oauth View In Hierarchy

Known implementations: canonical.launchpad.database.oauth.OAuthConsumer

An application which acts on behalf of a Launchpad user.
Datetime date_created Undocumented
Bool disabled Disabled consumers are not allowed to access any protected resources.
TextLine key The unique key which identifies a consumer. It is included by the consumer in each request made.
TextLine secret The secret which, if not empty, should be used by the consumer to sign its requests.
Method newRequestToken Return a new IOAuthRequestToken with a random key and secret.
Method getAccessToken Return the IOAuthAccessToken with the given key.
Method getRequestToken Return the IOAuthRequestToken with the given key.
date_created =
Undocumented
disabled =
Disabled consumers are not allowed to access any protected resources.
key =
The unique key which identifies a consumer. It is included by the consumer in each request made.
secret =
The secret which, if not empty, should be used by the consumer to sign its requests.
def newRequestToken():
Return a new IOAuthRequestToken with a random key and secret.

Also sets the token's date_expires to REQUEST_TOKEN_VALIDITY hours from the creation date (now).

The other attributes of the token are supposed to be set whenever the user logs into Launchpad and grants (or not) access to this consumer.

def getAccessToken(key):
Return the IOAuthAccessToken with the given key.

If the token with the given key does not exist or is associated with another consumer, return None.

def getRequestToken(key):
Return the IOAuthRequestToken with the given key.

If the token with the given key does not exist or is associated with another consumer, return None.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.