Page 1 of 1

OAuth2 lib https redirects

Posted: Wed Sep 08, 2021 1:12 pm
by seaniepie
Hi,
What is the method for dealing with the OAuth library when the provider (Salesforce in this case) requires a https redirect uri? OAuth is supposed to work by listening to the localhost http://127.0.0.1:xxxxx

If I set it up with https://127.0.0.1:66666 and listen on port 66666 the OAuth browser takes me to the website dashboard after login rather than close it down and return the response. Instead, we are forced to click the cancel button and we just get the response "Cancel".
Any help?

Thanks
Sean

Re: OAuth2 lib https redirects

Posted: Wed Sep 08, 2021 9:05 pm
by matthiasr
Sean,
i remember that you posted something similar "Collaborative help request for oAuth2 access to DocuSign) to the use list in June with some sample code, which contained a parameter which was not necessary, but was shown in an example in the LC dictionary.

So i am sure, this is not the case here. ;)

There was a discussion in 2020 in the uselist where someone posted a similar problem (OAuth2 on Win10: not returning to my app).
The problem there was, that a refresh token was ulrencoded twice. Just a shot in the dark without a sampel script....

Regards,

Matthias