Free Trial

Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
SOLVED

Gallery API Error: Invalid Signature

jarrod
ACE Emeritus
ACE Emeritus

I have a client trying to access our private gallery API and they keep receiving an error: "The provided signature (oauth_signature) is invalid." They have tried manipulating the order of the parameters but that hasn't helped and we cannot find an "un-minimized" version of 'oauth-signature.min.js' which they pointed out would help. Has anyone come across an issue with the gallery oauth process and how did you correct for it?

 

Thanks!

11 REPLIES 11
jarrod
ACE Emeritus
ACE Emeritus

I believe I figured out the problem...

Based on what the API-Docs showed, I assumed I should've been using the below URI:

http://gallery.{MySite}.com:80/gallery/api/v1/workflows/subscription/

 

This was producing an invalid signature, so when I changed it to:

http://gallery.{MySite}.com/gallery/api/v1/workflows/subscription/  (removed the :80)

it worked!!! 

JulieH
Alteryx Alumni (Retired)

Thanks for sharing back your solution with the community @jarrod! Hopefully it helps others :) 

karina_mazon
6 - Meteoroid
 

 

Hello Your help please. I am presenting the same message as the samples , but what happens esque are using the following architecture

2.2.png

We are using the API Alteryx by the call from the server there is no problem

1.1.png

the question is when it leaves the secure https context that company policies the process is as displayed in the picture 1; I is generating the following error.

 

2.1.png

 

 thanks for your help

 

jarrod
ACE Emeritus
ACE Emeritus

i'm not sure why it is producing that error in your case. Can you access the API outside of the interactive documentation? How about the gallery itself?

karina_mazon
6 - Meteoroid

Hi thanks for answering . ie can access this API documentation using the URL leaving the proxy secure environment (https ) , what happens in that in testing the call to an application published in the gallery I get the error that can be displayed on the previous image. The strange thing is that Alteryx login interface and visualization of the gallery of Alteryx out perfectly by proxy (https ) the problem is with the API call .

parparab
7 - Meteor

Hi 

 

Thanks for sharing, but whenever I change it as per v1/workflows/subscription it gives error of "Method not allowed" in my case.

 

Can you help me on this.

 

mohankumarg
6 - Meteoroid

Can you share the order of parameters .

My get request goes like below. Still getting the same error. 

org.springframework.web.client.RestTemplate - HTTP GET https://ctalteryx-sit.jpmchase.net/gallery/api/v1/workflows/5ff71f96185f0201fc0437e5/jobs/?oauth_con...

org.springframework.web.client.RestTemplate - Response 401 UNAUTHORIZED
Exception in thread "main" org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [{"data":null,"exceptionName":"UnauthorizedException","innerExceptionMessage":"","message":"The provided signature(oauth_signature) is invalid."}]

patrick_digan
17 - Castor
17 - Castor

@mohankumarg the dreaded api error message! I go through a lot of details in this article explaining how to generate the oauth_signature. When creating the signature, watch out for: which characters are encoded and which aren't, GET or POST has to be all caps, and the oauth parameters have to be in alphabetical order. There is a sample workflow in that article so you could download it and see if you can get that to connect to your API.

parparab
7 - Meteor

hi 

 

In my case, I was trying to use post method, so I used  Private Studio API Secret key and correct endpoint URL.and latest version of Gallery API macro and it worked well.

parparab_0-1610550371760.png