cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor

Add params to oauth redirect_uri

Hi,

When using OAUTH to get access_token, as explained here:

https://developer.goto.com/guides/HowTos/03_HOW_accessToken/

 

you can add the redirect_url:

 

https://api.getgo.com/oauth/v2/authorize?client_id={clientID}&response_type=code&redirect_uri={redirectUri}

Afterwards the client return to your site, as specified in the redirect_uri.

The redirect_uri must be from a predefined list as shown in the picture below.

 

I would like to add some kind of indentifer so when my the person return to my site, (to the redirect_uri) I will be able to know who that is.

 

Right now when the person returns to my site, I only recieve a single param- the code required for getting the access token, but no identifier.

 

I tried adding params to the redirect uri for example:

https://api.getgo.com/oauth/v2/authorize?client_id={clientID}&response_type=code&redirect_uri=http://example.com/?user_id=123

But unless I use exatctly the redirect_uri specifed in the app settings (as shown in pic below) I get the following error:

Error when using  redirect_uri different than specifiedError when using redirect_uri different than specified

So if I have 100 people trying to connect at the same time, and all of them return to my site I can't tell whose code belongs to which person.

 

Any ideas? thanks

 

 

Adding predefined  redirect_uriAdding predefined redirect_uri

a

 

1 REPLY 1
Highlighted
New Contributor

Re: Add params to oauth redirect_uri

Hi, I have the same problem, do you have any solution like use wildcard in the redirect uri?

 

Thanks

Pablo