Part of canonical.launchpad.interfaces.oauth View In Hierarchy
Known implementations: canonical.launchpad.database.oauth.OAuthConsumer
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. |
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.
IOAuthAccessToken
with the given key.
If the token with the given key does not exist or is associated with another consumer, return None.
IOAuthRequestToken
with the given key.
If the token with the given key does not exist or is associated with another consumer, return None.