Re: Using OAuth2 with Microsoft API services

2020-07-24 Thread Ben Rubinstein via use-livecode
This may be too obvious, but with OAuth on Google APIs I found I had to add 
(or was it remove) a trailing slash on the redirect. Also that localhost 
didn't work. E.g. only one of

http://127.0.0.1:56789
http://127.0.0.1:56789/

and definitely not
http://localhost:56789


(I can't tell you which because I've currently got both with and without a 
trailing slash authorised on the Google dashboard, and I can't remember which 
was the one that did it!)


On 7/22/20 12:00 PM, Richard Gaskin via use-livecode wrote:


Oddly, it appears as though we're authentincating fine as it is using
shared secret, the only problem being that we're not getting the redirect
to close the browser widget and return the auth code to us.


___
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


Re: Using OAuth2 with Microsoft API services

2020-07-22 Thread Mark Wieder via use-livecode

On 7/22/20 12:00 PM, Richard Gaskin via use-livecode wrote:

Oddly, it appears as though we're authentincating fine as it is using 
shared secret, the only problem being that we're not getting the 
redirect to close the browser widget and return the auth code to us.




What happens if you try this from a terminal or in Postman?
Do you see the redirect?

--
 Mark Wieder
 ahsoftw...@gmail.com

___
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


Re: Using OAuth2 with Microsoft API services

2020-07-22 Thread Mark Wieder via use-livecode

On 7/22/20 11:55 AM, Richard Gaskin via use-livecode wrote:


And I missed something - how does Amazon play into this?

Sorry - my bad. Doing too many things at once here.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
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


Re: Using OAuth2 with Microsoft API services

2020-07-22 Thread Richard Gaskin via use-livecode

A moment ago I wrote:


Mark Wieder wrote:

On 7/22/20 9:26 AM, Richard Gaskin via use-livecode wrote:
I've run into a snag in which the OAuth2 redirect URI does not seem to 
be called when used to authenticate for Microsoft API services such as 
Dynamics 365.


Before getting into details (there are many) it would be helpful to know 
whether anyone here has successfully use LiveCode's OAuth2 library to 
connect to Microsoft Office 365 apps, or even other Microsoft services 
that use Azure's authentication service.


Haven't, but this seems to be what you need:



Microsoft and Amazon make for strange bedfellows. Use certificates if 
you can.


Certificates? What are you referring to in the context of OAuth?


Ignore that.  I was familiar with the URL because that's where we 
started, but re-reading I see the section on certs there as an 
alternative to shared secret.


Does LC's OAuth2 support certs as an alternative to shared secret?

Azure made setting up shared secret a snap, and I don't recall seeing 
anything in LC's OAuth2 lib for using certs instead, but would be happy 
to try it if it'll get us past this redirect issue.


Oddly, it appears as though we're authentincating fine as it is using 
shared secret, the only problem being that we're not getting the 
redirect to close the browser widget and return the auth code to us.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
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


Re: Using OAuth2 with Microsoft API services

2020-07-22 Thread Richard Gaskin via use-livecode

Mark Wieder wrote:

On 7/22/20 9:26 AM, Richard Gaskin via use-livecode wrote:
I've run into a snag in which the OAuth2 redirect URI does not seem to 
be called when used to authenticate for Microsoft API services such as 
Dynamics 365.


Before getting into details (there are many) it would be helpful to know 
whether anyone here has successfully use LiveCode's OAuth2 library to 
connect to Microsoft Office 365 apps, or even other Microsoft services 
that use Azure's authentication service.


Haven't, but this seems to be what you need:



Microsoft and Amazon make for strange bedfellows. Use certificates if 
you can.


Certificates? What are you referring to in the context of OAuth?  And I 
missed something - how does Amazon play into this?


But yes, that's the page we started with.  We're now having an issue 
with the redirect URI not firing.  I'm working with the admin to adjust 
yet another Azure setting for that, but it would sure streamline the 
trial-and-error process if I could find someone who's done this 
successfully with LC.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
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


Re: Using OAuth2 with Microsoft API services

2020-07-22 Thread Mark Wieder via use-livecode

On 7/22/20 9:26 AM, Richard Gaskin via use-livecode wrote:
I've run into a snag in which the OAuth2 redirect URI does not seem to 
be called when used to authenticate for Microsoft API services such as 
Dynamics 365.


Before getting into details (there are many) it would be helpful to know 
whether anyone here has successfully use LiveCode's OAuth2 library to 
connect to Microsoft Office 365 apps, or even other Microsoft services 
that use Azure's authentication service.


Haven't, but this seems to be what you need:



Microsoft and Amazon make for strange bedfellows. Use certificates if 
you can.


--
 Mark Wieder
 ahsoftw...@gmail.com

___
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