Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-34698

JS API Client - Client requests with input parameter objects fail with 403

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • None

      There are two ways of making requests with the provided JS clients:

      1. supplying all of the request parameters in-line

      2. supplying the input parameters via the defined parameter structure. E.g., ListRolesForGroupParams
       
      When requests are made in automated tests using format 1, the request works. When requests are made using approach #2, they fail with HTTP 403 response. This 403 response is because the AxiosRequestConfig parameter with the proxy configuration isn't being honored.

      To easily reproduce the problem, I've coded a test that demonstrates the issue. The example invokes the "list group roles" endpoint both ways. See: https://github.com/RedHatInsights/javascript-clients-tests/blob/bd64426c40b961f594554577adb2a7ee432bfadf/src/tests/rbac/groupsComposed.test.ts#L83
       

              Unassigned Unassigned
              btweed@redhat.com Brandon Tweed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: