OAuth 1.0 signature generation for HTTP requests supporting HMAC-SHA1, HMAC-SHA256, RSA-SHA1, and PLAINTEXT methods
Overall
score
98%
Edge case and special scenario handling
Uses generateBase function
0%
100%
Uses rfc3986 encoding
100%
100%
Handles array parameters
100%
100%
Uses hmacsign correctly
100%
100%
Handles missing secrets
100%
100%
HMAC-SHA256 signature generation
Uses hmacsign256 function
0%
100%
Correct parameter order
100%
100%
Proper HTTP method handling
100%
100%
URL parameter handling
100%
100%
Parameters object handling
100%
100%
Empty token secret support
100%
100%
HMAC-SHA1 signature generation
Uses hmacsign function
100%
100%
Correct parameter order
100%
100%
Proper parameter handling
100%
100%
Handles empty secrets
100%
100%
Returns signature correctly
100%
100%
No reimplementation
100%
100%
Generic signature dispatcher (sign function)
Uses sign() function
100%
100%
Method string routing
100%
100%
Parameter mapping
100%
100%
RSA-SHA1 handling
100%
100%
PLAINTEXT signature method
Uses plaintext function
100%
100%
Correct parameter passing
100%
100%
Handles empty secrets
100%
100%
Signature verification
100%
100%
Complete OAuth 1.0a three-legged flow support
HMAC-SHA1 usage
100%
100%
Request token signing
100%
100%
Access token signing
100%
100%
Authenticated request signing
100%
100%
OAuth parameter construction
100%
100%
Signature base string
100%
100%
Cryptographic key construction (HMAC and RSA)
HMAC Key Construction
100%
100%
RFC 3986 Encoding
100%
100%
Empty Secret Handling
100%
100%
Special Character Encoding
100%
100%
RSA Key Validation
100%
100%
Key Construction Order
100%
100%
RFC 3986 percent-encoding
Uses rfc3986 function
100%
100%
encodeRFC3986 implementation
100%
100%
Parameter encoding logic
100%
100%
Special character handling
100%
100%
Flexible API design (multiple interfaces)
Dynamic signature dispatch
100%
100%
RFC 3986 encoding
100%
100%
Direct method calls
100%
0%
Correct parameter passing
100%
100%
Method string handling
100%
100%
Unicode and international character support
Uses hmacsign function
100%
100%
Proper parameter structure
100%
100%
RFC 3986 encoding
100%
100%
Correct secrets usage
100%
100%
Handles all test cases
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-oauth-sign