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

Part of lp.services.oauth.interfaces View In Hierarchy

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.
Attribute is_integrated_desktop This attribute is true if the consumer corresponds to a
Attribute integrated_desktop_name If the consumer corresponds to a user account on a personal
Attribute integrated_desktop_type If the consumer corresponds to a user account on a personal
Method isSecretValid Check if a secret is valid for this consumer.
Method newRequestToken Return a new IOAuthRequestToken and its random 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.
is_integrated_desktop =
This attribute is true if the consumer corresponds to a user account on a personal computer or similar device.
integrated_desktop_name =
If the consumer corresponds to a user account on a personal computer or similar device, this is the self-reported name of the computer. If the consumer is a specific web or desktop application, this is None.
integrated_desktop_type =
If the consumer corresponds to a user account on a personal computer or similar device, this is the self-reported type of that computer (usually the operating system plus the word "desktop"). If the consumer is a specific web or desktop application, this is None.
def isSecretValid(secret):
Check if a secret is valid for this consumer.
def newRequestToken():
Return a new IOAuthRequestToken and its random secret.

The key and secret are random, while 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 2022-06-16 00:00:12.