Skip to content

API calls to Magento2 would fail with signature invalid errors #1166

@artiomchi

Description

@artiomchi

Expected Behavior

RestSharp should calculate a valid HMAC signature when making OAuth1 api requests

Actual Behavior

Requests would fail if any query string parameters are used, and are passed to Magento in the url field.

Steps to Reproduce the Problem

  1. Get Magento2 API OAuth credentials
  2. Attempt to make API requests to Magento with query string params
    e.g. to customers/search?searchCriteria[sortOrders][0][field]=created_at&searchCriteria[sortOrders][0][direction]=DESC
  3. Request will fail on Magento side with Invalid signature

Specifications

  • Version: 106.3.1
  • Platform: Windows
  • Subsystem:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions