Hello Stephen!

And so very much kind of yours, greetings to Scotland!!

Stephen Isard wrote in
 <[email protected]>:
 |Close, but not quite.  I have successfully created a template and when I 
 |ran the helper script with -a authorize, I get
 |
 |* OAuth 2.0 RFC 6749, 4.1.1. Authorization Request
 |   . To create an authorization code, please visit the shown URL:
 ...
 |When I went to the url, I was prompted to log in, but after that I got a 
 |screen with the error message "Invalid Redirect Uri
 |Redirect URI passed does not match with the one configured".
 |
 |The Uri I am passing seemed to be "http://localhost:37833/";, if I am 
 |decoding the percent signs correctly.  Where does the ":37833/" come 
 |from?  I tried removing it, but got the same error message.

This is our local socket: the "redirect" flow creates a local
webserver (one that listens on http://localhost aka 127.0.0.1),
and it listens on a random port (selected by the operating system
on socket bind(2) time) by default.
So, in order for the foreign web service to talk to us, we need to
pass the port number, so it can access our temporary service.

 |Then I tried starting over, giving http://localhost:37833/ as the 
 |redirect address of the app, but still the same error message.

Therefore this does not work.
Ok, what we could try is to make the port part of the redirect URI
within the Zoho Web UI, and then by setting

                  'flow_redirect_uri_port_fixed': 'port_number_to_use'

in your Zoho config, my own Yandex configuration for example has

  flow_redirect_uri_port_fixed=33333

This means that we now fixate our port to number 33333.  And this
means that we *fail* if that port is already in use, so the entire
network configuration must be capable to (1) ensure that this port
can be reached from the outside, and (2) that this port is
actually usable whenever our authentication code runs.  (Not for
normal refreshing, luckily.
(To mention i complained without response at Yandex about that.)

So in short: http://localhost:PORT within Zoho UI, and
'flow_redirect_uri_port_fixed'=PORT in your local resource.
Would be my idea.

I am and stay online now..

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to