Re: OAuth2 on Win10: not returning to my app

2020-10-04 Thread Michael Muthmannn via use-livecode
Hi Richard, 
i had a similar issue with another oauth service (not sure if microsoft based),
the problem was inside the handler OAuth2Refresh, the pRefreshToken was already 
urlencoded.

I only changed  this line:
put "_token=" & pRefreshToken after tParams

This solved my problem.

command OAuth2Refresh pTokenURL, pClientID, pClientSecret, pRefreshToken, pPort
  local tParams
  put "grant_type=refresh_token" into tParams
  put "_id=" & urlEncode(pClientID) after tParams
  put "_secret=" & urlEncode(pClientSecret) after tParams
  put "_token=" & pRefreshToken after tParams
  put "_uri=" & urlEncode(kRedirectURL & ":" & pPort & "/") after 
tParams

  local tResponse
  set the httpHeaders to "Accept: application/json"

  post tParams to pTokenURL
  put JSONToArray(it) into tResponse

  -- reset the refresh token so the user doen't accidentally lose it
  if tResponse["refresh_token"] is empty then
 put pRefreshToken into tResponse["refresh_token"]
  end if

  return tResponse for value
end OAuth2Refresh



> Am 29.06.2020 um 22:14 schrieb Richard Gaskin via use-livecode 
> :
> 
> I've been working with the Oauth2 lib included with v9 (superhandy, team, 
> thanks!), and I've run into a snag:
> 
> When I call it, the browser widgets opens and goes to the authentication 
> provider (in this case Office 365), and authentication seems to work well.
> 
> However, at that point I'd expect the browser widget's window to close and 
> "it" would contain the approved auth scope info.
> 
> Instead what I'm seeing is the browser widget window remains open, and it 
> redirects into my Office 365 account.  I can close the window manually with 
> the "Cancel" button, but then "it" in my calling script contains "Cancel", no 
> auth info.
> 
> Have any of you successfully used LC's OAuth2 lib to log into MS Office 365 
> or other MS product that uses OAuth?
> 
> If so, what did you use for the redirect URL?  Or is there something else I 
> should be considering?
> 
> TIA -
> 
> -- 
> 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


___
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: Slightly OT: downloading Xcode

2020-10-04 Thread Richmond via use-livecode
Dunno about that: if they use a standard coffin for me there'll have to 
be a bit of "topping and tailing". ;-)


And, at the rate I'm going a few slices of "bacon" off the sides as well 
. . .


On 4.10.20 20:44, J. Landman Gay via use-livecode wrote:
After a certain age you're about as compressed as you get. I've lost 2 
inches since I was 20.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 4, 2020 11:55:14 AM Mark Wieder via use-livecode 
 wrote:



On 10/4/20 9:35 AM, Richmond via use-livecode wrote:


And as to "download yourself", all I can say is that while I have tried
many, many daft things in my life I have
never tried to either download or upload myself . . .


Heh.
If I ever tried to upload myself I suppose I'd probably try to compress
me first to remove the redundant redundancies.

--
 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





___
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: Slightly OT: downloading Xcode

2020-10-04 Thread J. Landman Gay via use-livecode
After a certain age you're about as compressed as you get. I've lost 2 
inches since I was 20.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 4, 2020 11:55:14 AM Mark Wieder via use-livecode 
 wrote:



On 10/4/20 9:35 AM, Richmond via use-livecode wrote:


And as to "download yourself", all I can say is that while I have tried
many, many daft things in my life I have
never tried to either download or upload myself . . .


Heh.
If I ever tried to upload myself I suppose I'd probably try to compress
me first to remove the redundant redundancies.

--
 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





___
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: Slightly OT: downloading Xcode

2020-10-04 Thread Richmond via use-livecode
Well, Mark, at the risk of being offensive (What? Me? Surely not.), when 
we met at the Edinburgh conference about 10 years ago
I could not help noticing that you were somewhat more compressed than 
me; and, since then I have developed quite a lot of redundant code, and 
cannot for the life of me work out how to refactor myself . . . I assure 
you any attempt to upload me

would out-broadband broadband. :/

On 4.10.20 19:53, Mark Wieder via use-livecode wrote:

On 10/4/20 9:35 AM, Richmond via use-livecode wrote:

And as to "download yourself", all I can say is that while I have 
tried many, many daft things in my life I have

never tried to either download or upload myself . . .


Heh.
If I ever tried to upload myself I suppose I'd probably try to 
compress me first to remove the redundant redundancies.





___
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: Slightly OT: downloading Xcode

2020-10-04 Thread Mark Wieder via use-livecode

On 10/4/20 9:35 AM, Richmond via use-livecode wrote:

And as to "download yourself", all I can say is that while I have tried 
many, many daft things in my life I have

never tried to either download or upload myself . . .


Heh.
If I ever tried to upload myself I suppose I'd probably try to compress 
me first to remove the redundant redundancies.


--
 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: Slightly OT: downloading Xcode

2020-10-04 Thread Richmond via use-livecode
Graham: there are no apologies needed: I leanrt several useful things, 
such as, for instance
that Apple issue .xip files which their own in-built apps seem unable to 
decompress!


I had to use something called 'Keka' (which sounds suggestively like Cacka).

And as to "download yourself", all I can say is that while I have tried 
many, many daft things in my life I have

never tried to either download or upload myself . . .

Love and tickles, Richmond.

On 4.10.20 15:03, Graham Samuel via use-livecode wrote:

This is just to thank everyone who took part in these discussions. I learned a 
lot - for example, I didn’t know that download managers existed.

I have solved my immediate problem by brute force (I basically kept coming back 
to my Mac every few minutes for about half a day and so did the download), but 
the solutions offered in this conversation are going to be used from now on.  
In fact since Apple keeps updating Xcode and LC struggles (and sometimes fails) 
to keep up, a lot more of these big downloads seem inevitable.

To put the thing in a wider context, I do think these incredibly large files 
are a bad thing. OK sometimes they may be unavoidable, but in the case of 
Xcode,  which is really just a big tool box (and other comparable software), it 
seems perverse. Not much chance of changing Apple’s mind, I suppose.

Personally I can still hope that my French ISP comes out of the woodwork and gives me 
"fibre optique" before I have to take off for quarantine in England (where i 
have absolutely no idea what internet speeds to expect in my quarantine hideout - what 
times we live in!).

Thanks again

Graham
PS Apologies to Richmond for the unforeseen consequences of my typo - but in 
mitigation, I never asked you to do the download yourself!


On 3 Oct 2020, at 20:27, Richmond via use-livecode 
 wrote:

Well . . . eventually after a lot of fooling around I chopped Xcode 11.5 up 
into 15 * 650 MB chunks: but, frankly, that
will not solve your problem.

Later postings in this thread made a lot more sense.

Best, Richmond.

On 3.10.20 11:11, Graham Samuel via use-livecode wrote:

This is a question for people having to use XCode to generate iOS apps. I find 
from responses on this list that I now need Xcode 15 to have a chance of 
generating for iOS 14. I would ask Apple this quesiton, but I doubt if I would 
get a meaningful answer:

I'm working deep in the French countryside with an ADSL connection - although I 
have enough bandwidth to stream TV programs, really long files are hard to 
download. Downloading Xcode - which is reported to be an 8.12GB file - at a 
speed of between 300 and 750 KB/sec is a nightmare. If the download speed drops 
below some unspecified limit, the download stops and has to be resumed in 
Safari, but that's not the worst of it. If I leave the download overnight, 
having got say 4 out of 8 Gb loaded, when look at the download folder in the 
morning, it only contains 14 bytes, necessitating a complete reload! There 
isn't even anything in the Trash. What's that about, and is there any way I can 
simply accumulate the download bit by bit until it's all finished?

If anyone has any hints, I’d be grateful. Otherwise it means spending some 
hours keep the download pot boiling and wrecking the rest of my day.

Thanks

Graham
___
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


___
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: Slightly OT: downloading Xcode

2020-10-04 Thread Graham Samuel via use-livecode
This is just to thank everyone who took part in these discussions. I learned a 
lot - for example, I didn’t know that download managers existed. 

I have solved my immediate problem by brute force (I basically kept coming back 
to my Mac every few minutes for about half a day and so did the download), but 
the solutions offered in this conversation are going to be used from now on.  
In fact since Apple keeps updating Xcode and LC struggles (and sometimes fails) 
to keep up, a lot more of these big downloads seem inevitable.

To put the thing in a wider context, I do think these incredibly large files 
are a bad thing. OK sometimes they may be unavoidable, but in the case of 
Xcode,  which is really just a big tool box (and other comparable software), it 
seems perverse. Not much chance of changing Apple’s mind, I suppose.

Personally I can still hope that my French ISP comes out of the woodwork and 
gives me "fibre optique" before I have to take off for quarantine in England 
(where i have absolutely no idea what internet speeds to expect in my 
quarantine hideout - what times we live in!).

Thanks again

Graham
PS Apologies to Richmond for the unforeseen consequences of my typo - but in 
mitigation, I never asked you to do the download yourself!

> On 3 Oct 2020, at 20:27, Richmond via use-livecode 
>  wrote:
> 
> Well . . . eventually after a lot of fooling around I chopped Xcode 11.5 up 
> into 15 * 650 MB chunks: but, frankly, that
> will not solve your problem.
> 
> Later postings in this thread made a lot more sense.
> 
> Best, Richmond.
> 
> On 3.10.20 11:11, Graham Samuel via use-livecode wrote:
>> This is a question for people having to use XCode to generate iOS apps. I 
>> find from responses on this list that I now need Xcode 15 to have a chance 
>> of generating for iOS 14. I would ask Apple this quesiton, but I doubt if I 
>> would get a meaningful answer:
>> 
>> I'm working deep in the French countryside with an ADSL connection - 
>> although I have enough bandwidth to stream TV programs, really long files 
>> are hard to download. Downloading Xcode - which is reported to be an 8.12GB 
>> file - at a speed of between 300 and 750 KB/sec is a nightmare. If the 
>> download speed drops below some unspecified limit, the download stops and 
>> has to be resumed in Safari, but that's not the worst of it. If I leave the 
>> download overnight, having got say 4 out of 8 Gb loaded, when look at the 
>> download folder in the morning, it only contains 14 bytes, necessitating a 
>> complete reload! There isn't even anything in the Trash. What's that about, 
>> and is there any way I can simply accumulate the download bit by bit until 
>> it's all finished?
>> 
>> If anyone has any hints, I’d be grateful. Otherwise it means spending some 
>> hours keep the download pot boiling and wrecking the rest of my day.
>> 
>> Thanks
>> 
>> Graham
>> ___
>> 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


___
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