SlyAPI.oauth1#
Implemenation of OAuth1.0a as the Auth interface https://datatracker.ietf.org/doc/html/rfc5849
Functions
|
|
|
|
Classes
|
Provides the Auth interface implementation for OAuth1 |
|
|
|
- class SlyAPI.oauth1.OAuth1User(key: str, secret: str)[source]#
Bases:
object
- class SlyAPI.oauth1.OAuth1App(key: str, secret: str, request_uri: str, authorize_uri: str, access_uri: str)[source]#
Bases:
object
- sign(request, user=None)[source]#
- Parameters:
request (Request) –
user (OAuth1User | None) –
- Return type:
- class SlyAPI.oauth1.OAuth1(app, user)[source]#
Bases:
Auth
Provides the Auth interface implementation for OAuth1
Load an OAuth1 app and user from JSON files or existing objects.
- Parameters:
app (OAuth1App) –
user (OAuth1User) –
- user: OAuth1User#