Crate oauth_1a

Source
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§

ClientId
A client ID.
ClientSecret
A client secret.
Nonce
A nonce.
OAuthData
The main entrypoint to the API. Non-sensitive data required for all authenticated requests.
SignableRequest
The components of an HTTP request that must be signed.
SigningKey
A signing key for OAuth.
Token
An OAuth token.
TokenSecret
A token secret.

Enums§

AuthorizationType
The type of endpoint to generate an Authorization header for.
SignatureMethod
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 and SigningKey with the response from either the access token or request token endpoints.