API Error while trying to use a port_number: <redirect_uri>:<port>

Hi,

I'm trying to access wrikeApi using oauth2client (python) library that automatically attach the *port* to the *redirect_uri*. https://github.com/google/oauth2client/blob/master/oauth2client/tools.py#L214

 

I'm getting the response

{"error":"invalid_request","error_description":"Redirect uri is missing or invalid"}

While trying to use a 

port=8080 or port=80

In my request. 

You can reproduce with 

https://www.wrike.com/oauth2/authorize?scope=&redirect_uri=%27http/localhost:8080%27&response_type=code&client_id=<>&access_type=offline

 

I don't have the error message as soon as I remove de port_number, so I assume that *port_number* is not handle as I expected by the API?

 

Can you tell me how to specify the port number ?

Thanks

Harry 

 

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
1 commentaire
Avatar
Pavel M

Hi Harry! Could you please make sure first that the indicated 'redirect_uri' is saved in permitted URI's in your app settings (https://www.screencast.com/t/zB4b9oaCzC)? Port numbers should match.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: API Error while trying to use a port_number: <redirect_uri>:<port>
[this list is visible for admins and agents only]

Haut de la page
Didn’t find what you were looking for? Write new post