oAuth2 seems to log in successfully but the oAuth2 dialog/browser does not disappear, have to click cancel

Brian Milby brian at milby7.com
Fri Aug 28 10:27:26 EDT 2020


Looking at the RFC8252 Section 7.3, it is proper for the loopback network interface to use HTTP.  Is it expecting PKCE (rfc7636)?

Sent from my iPhone

> On Aug 28, 2020, at 9:37 AM, Brian Milby <brian at milby7.com> wrote:
> 
> The way the library works is that it sets up a listener on the IP/port.  It does not have any way to handle an encrypted (https) response/connection currently (and I’m not sure how that would even be implemented).
> 
> The code that handles the response is what closes the browser window that was created.  If it is not getting closed, then the response isn’t coming through.
> 
> Sent from my iPhone
> 
>> On Aug 28, 2020, at 12:31 AM, Martin Koob via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi 
>> 
>> In my project to make a library for connecting to an LMS I am trying to use oAuth2 to authorize with a Brightspace LMS  instance from a Mac Desktop App.   The oAuth2 dialog/browser appears I enter the credentials and then the login appears to succeed i.e. the LMS's home page opens in the dialog/browser.  However the dialog does not  close so I have to click the ‘Cancel’ button.  So the result returned by the oAuth2 command is “cancel’ and there is nothing in the ‘it’ variable.
>> 
>> My redirect URI is https://127.0.0.1:54256 <https://127.0.0.1:54256/>.  The LMS service requires https.  LiveCode’s oAuth only allows http for the redirect URI.  Could that be the issue?
>> 
>> My guess is that once a response is received at the redirect URI then LiveCode’s oAuth2 dialog would close. 
>> Then the value of the token would be in the ‘it’ variable.
>> Is that the case?
>> 
>> The other issue may be that I don’t have the correct token URL parameter for the oAuth2 command.  I am still checking into that.
>> 
>> Any suggestions on how to get this working?
>> 
>> Martin Koob
>> 
>> VideoLinkwell, a service of
>> Koob SourceText Solutions Inc.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list