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@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@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to