{"repo":"Mastercard/oauth1-signer-nodejs","free":true,"listed":false,"github":"https://github.com/Mastercard/oauth1-signer-nodejs","clone":"git clone https://github.com/Mastercard/oauth1-signer-nodejs.git","description":"Zero dependency library for generating a Mastercard API compliant OAuth signature.","language":"JavaScript","stars":41,"topics":["oauth1","oauth1a","nodejs","javascript","mastercard","openapi"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"oauth1-signer-nodejs Table of Contents - Overview Compatibility Supported Signature Methods References Versioning and Deprecation Policy - Usage Prerequisites Adding the Library to Your Project Loading the Signing Key Creating the OAuth Authorization Header Integrating with OpenAPI Generator API Client Libraries Overview Zero dependency library for generating a Mastercard API compliant OAuth signature. Compatibility Node 6.12.3+ in general. Node 8.0.0+ for RSA-PSS signing. There shouldn't be any Node compatibility issues with this package, but it's a good idea to keep your Node versions up-to-date. It is recommended that you use one of the LTS Node.js releases, or one of the more general recent releases. A Node version manager such as nvm (Mac and Linux) or nvm-windows is a good way to stay on top of this. Supported Signature Methods Two cryptographic methods are available for generating OAuth signatures, selected via the SignatureMethod constants: Constant Algorithm Specification --- --- --- SignatureMethod.RSA SHA256 (default) RSASSA-PKCS1-v1 5 with SHA-256 RFC 8017 §8.2 SignatureMethod.RSA PSS SHA256 RSASSA-PSS (Digest: SHA-256, MGF: MGF1 with SHA-256, Salt length: 32 bytes) RFC 8017 §8.1 OAuth.getAuthorizationHeader accepts an optional signatureMethod parameter. When omitted, SignatureMethod.RSA SHA256 is used by default. References OAuth 1.0a specification Body hash extension for non application/x-www-form-urlencoded payloads Versioning and Deprecation Policy Mastercard ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Mastercard","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Mastercard/oauth1-signer-nodejs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}