Expand description
An implementation of OAuth 1.0a. This is intended to be completely agnostic to all application details, so you might need to do some parts yourself. A minimal example is included.
Structs§
- Client
Id - A client ID.
- Client
Secret - A client secret.
- Nonce
- A nonce.
- OAuth
Data - The main entrypoint to the API. Non-sensitive data required for all authenticated requests.
- Signable
Request - The components of an HTTP request that must be signed.
- Signing
Key - A signing key for OAuth.
- Token
- An OAuth token.
- Token
Secret - A token secret.
Enums§
- Authorization
Type - The type of endpoint to generate an Authorization header for.
- Signature
Method - A signing method. RSA-SHA1 is not currently supported.
Traits§
- Signable
- Data that can be signed.
Functions§
- encode_
auth_ parameters - Encode OAuth parameters for an Authorization header.
- get_
verifier - Gets the verifier string from a callback URL.
- receive_
token - Updates an
OAuthData
andSigningKey
with the response from either the access token or request token endpoints.