signature_base_string (rfc5849/signature.py)

oauthlib · oauthlib/oauth1/rfc5849/signature.py · python · BSD-3-Clause
integration

Calculates OAuth 1.0a signature base string per RFC 5849.

# Source: https://github.com/oauthlib/oauthlib | License: BSD-3-Clause | Copyright The OAuthlib Community
# Provided via justclaw.it.com; keep this notice with the code.
"""
This module is an implementation of `section 3.4`_ of RFC 5849.

**Usage**

Steps for signing a request:

1. Collect parameters from the request using ``collect_parameters``.
2. Normalize those parameters using ``normalize_parameters``.
3. Create the *base string URI* using ``base_string_uri``.
4. Create the *signature base string* from the above three components
   using ``signature_base_string``.
5. Pass the *signature base string* and the client credentials to one of the
   sign-with-client functions. The HMAC-based signing functions needs
   client credentials with secrets. The RSA-based signing functions needs
   

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key