Re: OAuth2 Status?

2017-10-13 Thread pink via use-livecode
After testing out a few things with Panos, the conclusion is corrupted prefs
file.

After deleting my prefs file and starting fresh, everything is working.

With a little bit of shame, I'm going to admit that at one point while
working on my Toodledo library it stopped working and I started freaking out
before I remembered that I had turned off the wifi on my Macbook 

So with the internet out, the OAuth2 panel pops open and stays open, but
remains blank. In the IDE, I just hit command-. a couple of times to
eventually close it. 

Question is, if the user has some sort of connectivity issue, how could they
close the popup? For that matter, what if they just change their mind? On
the login page for Toodledo, they have a cancel button, but pressing it just
causes the page to refresh, it doesn't dismiss the popup. 

How could a user get rid of the panel? 
How could a mobile user get rid of it? 
Is there something programmatically we could add to allow them to more
easily dismiss the panel?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: OAuth2 Status?

2017-10-12 Thread panagiotis merakos via use-livecode
Hi all,

I have tested using the stack from LQCC and used the credentials Greg sent
me privately. I get a sheet stack with the error:

OAuth Error: invalid_team_for_non_distributed_app

So I assume that something is wrong with these credentials.

@Ben

If you want to close the sheet stack, if no "Cancel" or "Close" btn is
present on the stack, you can do it easily like this:

1. type in the msg box (but do NOT press enter yet):

close the mousestack

2. place the cursor on the sheet stack

3. now press enter


Best,

Panos

--





On Thu, Oct 12, 2017 at 1:12 PM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I downloaded your stack from LQCC, substituted my slack client id and
> secret, and port. I then got a sheet with error because the 'scope'
> parameter wasn't specified. When I specified that, I got a nice Slack login
> window... which complained that my free account was up to its limit of
> integrations! But at least the oauth stuff seemed to be working.
>
> This might be an Indy v Business thing?
>
> (One thing I've noticed is that if there are problems, you can be stuck
> with a (modal) sheet dialog, and no way to close it. By the time I got to
> the polite Slack refusal, it had the decency to offer a "go back" button
> which had the effect of closing the sheet. But when there were problems
> (the scope, and before that I'd forgotten to change the port) I was seeing
> a useful error report (from Slack) in the window, but with no way to close
> it.
>
> Fortunately I had the message box open, was able to list windows to get
> the UUID for the sheet window and close it from there. Otherwise you might
> find yourself in a force-quit situation - so proceed with care!)
>
>
>
>
> On 12/10/2017 12:21, pink via use-livecode wrote:
>
>> LC9DP9 Indy on Mac
>>
>> Right now, I've only tested in the IDE without success. I tried one Mac
>> standalone just for the heck of it (didn't work). Haven't tried iOS or any
>> other platform.
>>
>>
>> btw, submitted ticket:
>> http://quality.livecode.com/show_bug.cgi?id=20559
>> 
>>
>>
>>
>> -
>> ---
>> Greg (pink) Miller
>> mad, pink and dangerous to code
>> --
>> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-
>> User-f278306.html
>>
>> ___
>> 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
>



-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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: OAuth2 Status?

2017-10-12 Thread Ben Rubinstein via use-livecode
I downloaded your stack from LQCC, substituted my slack client id and secret, 
and port. I then got a sheet with error because the 'scope' parameter wasn't 
specified. When I specified that, I got a nice Slack login window... which 
complained that my free account was up to its limit of integrations! But at 
least the oauth stuff seemed to be working.


This might be an Indy v Business thing?

(One thing I've noticed is that if there are problems, you can be stuck with a 
(modal) sheet dialog, and no way to close it. By the time I got to the polite 
Slack refusal, it had the decency to offer a "go back" button which had the 
effect of closing the sheet. But when there were problems (the scope, and 
before that I'd forgotten to change the port) I was seeing a useful error 
report (from Slack) in the window, but with no way to close it.


Fortunately I had the message box open, was able to list windows to get the 
UUID for the sheet window and close it from there. Otherwise you might find 
yourself in a force-quit situation - so proceed with care!)




On 12/10/2017 12:21, pink via use-livecode wrote:

LC9DP9 Indy on Mac

Right now, I've only tested in the IDE without success. I tried one Mac
standalone just for the heck of it (didn't work). Haven't tried iOS or any
other platform.


btw, submitted ticket:
http://quality.livecode.com/show_bug.cgi?id=20559




-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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


Re: OAuth2 Status?

2017-10-12 Thread pink via use-livecode
LC9DP9 Indy on Mac

Right now, I've only tested in the IDE without success. I tried one Mac
standalone just for the heck of it (didn't work). Haven't tried iOS or any
other platform.


btw, submitted ticket:
http://quality.livecode.com/show_bug.cgi?id=20559
  



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: OAuth2 Status?

2017-10-12 Thread Ben Rubinstein via use-livecode

Hi Greg,

What platform are you doing this on? I've found Oauth2 in LC9dp9 (Business) is 
working okay for me with both Dropbox and Slack - on Mac.


On iOS however I've had no luck. I'd be interested to hear if anyone has got 
it working on iOS or Android.


Ben


On 09/10/2017 18:58, pink via use-livecode wrote:

Does OAuth2 currently work?  I’m using LC 9 Indy DP9, I tried 3 different
APIs (Toodledo, Todoist, and Slack)

In all 3 cases, an empty window pops up briefly and then closes.

For Slack, I literally copied the example from the dictionary and
substituted my app’s values.

Has anyone been able to use it yet?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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

Re: OAuth2 Status?

2017-10-11 Thread Monte Goulding via use-livecode

> On 11 Oct 2017, at 8:53 pm, pink via use-livecode 
>  wrote:
> 
> Other than the code itself, is there anything I need to do in the stack to
> make this work?

No there shouldn’t be. Again I would just double check that `it` isn’t an 
array. It should be an array or `the result` should have some details of the 
issue. If you are sure both are empty can you open a report.

Cheers

Monte
___
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: OAuth2 Status?

2017-10-11 Thread pink via use-livecode
Other than the code itself, is there anything I need to do in the stack to
make this work?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: OAuth2 Status?

2017-10-09 Thread pink via use-livecode
Monitoring connections, when I run the script, Livecode makes connections to:

slack.com:443
secure.quantserve.com:443
sp.analytics.yahoo.com:443
569-ct.c3tag.com:443
platform.twitter.com:443
ad.doubleclick.net:443
atlas.c10r.facebook.com:443
s.adroll.com:443
d1ivexoxmp59q7.cloudfront.net:443
www.bizographics.com:443
ib.anycast.adnxs.com:443
fanboy-web-linkedin-prod-1790689846.us-east-1.elb.amazonaws.com:443




-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: OAuth2 Status?

2017-10-09 Thread pink via use-livecode
the result is empty (so is “it”)



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: OAuth2 Status?

2017-10-09 Thread Monte Goulding via use-livecode

> On 10 Oct 2017, at 4:58 am, pink via use-livecode 
>  wrote:
> 
> Does OAuth2 currently work?  I’m using LC 9 Indy DP9, I tried 3 different
> APIs (Toodledo, Todoist, and Slack)
> 
> In all 3 cases, an empty window pops up briefly and then closes.
> 
> For Slack, I literally copied the example from the dictionary and
> substituted my app’s values.
> 
> Has anyone been able to use it yet?

What is the value of `the result` after it fails?

Cheers

Monte
___
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: OAuth2 Status?

2017-10-09 Thread Mike Kerner via use-livecode
I'm using it with the new dropbox library.

On Mon, Oct 9, 2017 at 1:58 PM, pink via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does OAuth2 currently work?  I’m using LC 9 Indy DP9, I tried 3 different
> APIs (Toodledo, Todoist, and Slack)
>
> In all 3 cases, an empty window pops up briefly and then closes.
>
> For Slack, I literally copied the example from the dictionary and
> substituted my app’s values.
>
> Has anyone been able to use it yet?
>
>
>
> -
> ---
> Greg (pink) Miller
> mad, pink and dangerous to code
> --
> Sent from: http://runtime-revolution.278305.n4.nabble.com/
> Revolution-User-f278306.html
>
> ___
> 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




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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