Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
axios-oauth-1.0a
Advanced tools
Easily add OAuth 1.0a signing to your axios client
npm i axios-oauth-1.0a
or
yarn add axios-oauth-1.0a
For use in the browser, you'll need to configure buffer and crypto support polyfills and fallback modules. See resolve.fallback and How To Polyfill Buffer With WebPack v5 for more information.
oauth_signature
valueHMAC-SHA1
, HMAC-SHA256
HMAC-SHA256
true
, always try to hash the body and include the hash in the signaturefalse
, never try to calculate oauth_body_hash
'auto'
, calculate oauth_body_hash
on PUT
or POST
requests that have a bodyTo sign your axios requests using OAuth 1.0a:
import addOAuthInterceptor from 'axios-oauth-1.0a';
// Create a client whose requests will be signed
const client = axios.create();
// Specify the OAuth options
const options = {
algorithm: 'HMAC-SHA1',
key: 'xxx',
secret: 'yyy',
};
// Add interceptor that signs requests
addOAuthInterceptor(client, options);
See github releases
FAQs
Easily add OAuth 1.0a signing to your axios client
The npm package axios-oauth-1.0a receives a total of 18,986 weekly downloads. As such, axios-oauth-1.0a popularity was classified as popular.
We found that axios-oauth-1.0a demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.