How do I create an oauth_signature for OAuth-based authentication in Magento 2.0 REST API requests?
Assuming I use PHP's hash_hmac:
hash_hmac ( 'sha1' , $string , 'Integrations-Consumer-Secret' );
I'm not sure what $string should contain
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityHow do I create an oauth_signature for OAuth-based authentication in Magento 2.0 REST API requests?
Assuming I use PHP's hash_hmac:
hash_hmac ( 'sha1' , $string , 'Integrations-Consumer-Secret' );
I'm not sure what $string should contain
It is possible to use Access token as bearer token in Authorization header (OAuth 2.0 style), instead of creating signature (OAuth 1.0a style).
Header name: Authorization
, Header value: Bearer access_token_goes_here
If you still want to sign request in 1.0a style, then consider using some library, e.g. PHP OAuth extension