l.s.o.model : module documentation

Part of lp.services.oauth

No module docstring
Class OAuthValidationError Raised when the OAuth token cannot be validated.
Class OAuthBase Base class for all OAuth database classes.
Function sha256_digest Return the SHA-256 hash of some data.
Class OAuthConsumer See IOAuthConsumer.
Class OAuthConsumerSet See IOAuthConsumerSet.
Class OAuthAccessToken See IOAuthAccessToken.
Class OAuthRequestToken See IOAuthRequestToken.
Class OAuthRequestTokenSet See IOAuthRequestTokenSet.
Function create_token_key_and_secret Create a key and secret for an OAuth token.
def sha256_digest(data):
Return the SHA-256 hash of some data.

The returned string is always Unicode, to satisfy Storm. In Python 3, this is straightforward because hexdigest() returns that anyway, but in Python 2 we must decode.

def create_token_key_and_secret(table):
Create a key and secret for an OAuth token.

The key will have a length of 20. The secret will have a length of 80.

Unknown Field: tableThe table in which the key/secret are going to be used. Must be one of OAuthAccessToken or OAuthRequestToken.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.