OAuth2 lib https redirects

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

OAuth2 lib https redirects

Post by seaniepie » Wed Sep 08, 2021 1:12 pm

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

matthiasr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 190
Joined: Sat Apr 08, 2006 7:55 am
Location: Lübbecke, Germany
Contact:

Re: OAuth2 lib https redirects

Post by matthiasr » Wed Sep 08, 2021 9:05 pm

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

Post Reply

Return to “Internet”