Re: Get rid of the remote debugger

2023-12-08 Thread J. Landman Gay via use-livecode
Piggy backing... Did you try turning off script debugging from the 
development menu?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 8, 2023 6:16:57 PM matthias rebbe via use-livecode 
 wrote:


Hm, did you already try to delete the folder   
Extensions/com.livecode.library.remotedebugger in the Livecode Extensions 
folder?


Am 09.12.2023 um 00:42 schrieb Bob Sneidar via use-livecode 
:


I occasionally get the dreaded error in remote debugger stack is password 
protected issue. I don’t WANT the remote debugger. I do not NEED the remote 
debugger. How can I rid myself of this incredibly annoying pest?


Bob S

___
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: Get rid of the remote debugger

2023-12-08 Thread matthias rebbe via use-livecode
Hm, did you already try to delete the folder   
Extensions/com.livecode.library.remotedebugger in the Livecode Extensions 
folder?

> Am 09.12.2023 um 00:42 schrieb Bob Sneidar via use-livecode 
> :
> 
> I occasionally get the dreaded error in remote debugger stack is password 
> protected issue. I don’t WANT the remote debugger. I do not NEED the remote 
> debugger. How can I rid myself of this incredibly annoying pest? 
> 
> Bob S
> 
> ___
> 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


Get rid of the remote debugger

2023-12-08 Thread Bob Sneidar via use-livecode
I occasionally get the dreaded error in remote debugger stack is password 
protected issue. I don’t WANT the remote debugger. I do not NEED the remote 
debugger. How can I rid myself of this incredibly annoying pest? 

Bob S

___
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: Does the browser widget work?

2023-12-08 Thread Bob Sneidar via use-livecode
Imagine certain accidental and unwanted web page spewing out sound and 
questionable content at work and no way to make it stop. That is one excellent 
reason I can give for why. :-)

Bob S


> On Dec 8, 2023, at 1:59 PM, Geoff Canyon via use-livecode 
>  wrote:
> 
> Good gosh, WHY!?
> 
> (That fixed it, thanks)
> 
> On Fri, Dec 8, 2023 at 4:53 PM Andreas Bergendal <
> andreas.bergen...@gmail.com> wrote:
> 
>> It works for me (LC 9.6.11, Mac).
>> 
>> Impractically, the browser widget only shows its content with browse tool
>> selected, not pointer tool.
>> But I suppose your problem isn’t that simple, right…? :)
>> 
>> 
>>> 8 dec. 2023 kl. 22:42 skrev Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> set the url of widget 1 to “http://www.google.com” — nothing
>>> 
>>> set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” —
>> also
>>> nothing
>>> 
>>> Am I doing it wrong?
>> 
> ___
> 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: Does the browser widget work?

2023-12-08 Thread Geoff Canyon via use-livecode
Good gosh, WHY!?

(That fixed it, thanks)

On Fri, Dec 8, 2023 at 4:53 PM Andreas Bergendal <
andreas.bergen...@gmail.com> wrote:

> It works for me (LC 9.6.11, Mac).
>
> Impractically, the browser widget only shows its content with browse tool
> selected, not pointer tool.
> But I suppose your problem isn’t that simple, right…? :)
>
>
> > 8 dec. 2023 kl. 22:42 skrev Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > set the url of widget 1 to “http://www.google.com” — nothing
> >
> > set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” —
> also
> > nothing
> >
> > Am I doing it wrong?
>
___
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: Does the browser widget work?

2023-12-08 Thread Andreas Bergendal via use-livecode
It works for me (LC 9.6.11, Mac).

Impractically, the browser widget only shows its content with browse tool 
selected, not pointer tool.
But I suppose your problem isn’t that simple, right…? :)


> 8 dec. 2023 kl. 22:42 skrev Geoff Canyon via use-livecode 
> :
> 
> set the url of widget 1 to “http://www.google.com” — nothing
> 
> set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” — also
> nothing
> 
> Am I doing it wrong?

___
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


Does the browser widget work?

2023-12-08 Thread Geoff Canyon via use-livecode
set the url of widget 1 to “http://www.google.com” — nothing

set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” — also
nothing

Am I doing it wrong?
___
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: tsNetUploadSync()

2023-12-08 Thread matthias rebbe via use-livecode
Hi Scott,

i just tested here with LC 9.6.10 and 10DP6 on a HostM account and also on a 
Synology FTP account in Rosetta mode and native on ARM64
I used FTP explicit as protocol.
In all cases it was successful.

My HostM account is on a server located in Germany at Hetzner, Your domain is 
on a server located in Canada at OHV.
So maybe there was a change in tsNET and there  is a difference between how our 
servers confirm the successful upload. And maybe the way  your server confirms 
the upload, does not "comply" with the changes in tsNET.

Maybe the HostM support could help in changing the settings. They are very used 
with Livecode. Y

Btw.  I could send you the login data for my test account so you could check  
if it is working with that account. 
Then you could tell HostM suppert  that there is no problem with a German HostM 
account.

Regards,
Matthias






> Am 08.12.2023 um 01:13 schrieb scott--- via use-livecode 
> :
> 
> I have a project that uses the business version of tsNet to ftp a file onto a 
> web server. (I’m using a Mac, the server is a shared one on hostm.) This 
> works fine in LC 9.6.8 but fails in subsequent versions of LC 9.6.x as well 
> as LC 10.0.0 (dp 6). I’m fairly ignorant of tsnet and file transfer 
> protocols. My attempts to debug the problem by looking at headers and cURL 
> error codes hasn’t gotten me anywhere useful. Is there something that changed 
> between LC 9.6.8 and LC 9.6.9  that might help inform where I should be 
> looking? I saw that LC 9.6.9 updated the version of OpenSSL it was using but 
> I’m not sure if/how that might effect tsnet. I’ve put more details below.  
> Any ideas welcomed. (Well, almost any ;- )
> 
> --
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   https://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth1-360-734-4701
> -
> 
> 
> When things don’t work I get:
> "Transfer complete with server response code tsneterr: (13) Bad PASV/EPSV 
> response: 250”  — which is confusing to me since:
> 
> "CURLE_FTP_WEIRD_PASV_REPLY (13)
> libcurl failed to get a sensible result back from the server as a response to 
> either a PASV or a EPSV command. The server is flawed.”
> 
> Although a 250 FTP response seems to mean: "Requested file action okay, 
> completed"
> 
> 
> When things do work [LC 9.6.8] I get:
> "Transfer complete with server response code 226”   — which I think means: 
> Closing data connection; requested file action successful
> 
> -
> A more complete list of responses
> 
> server responses from LC 9.6.11 (rc 1) failed attempt:
> 
> - Server Responses -
> Downloading FTPS directory listing for 
> /public_html/traditionaltaekwondo.org/calendar_events_data from 
> ftp://xxx.serversignin.com
> Transfer complete with server response code tsneterr: (13) Bad PASV/EPSV 
> response: 550--
> tRecvHeaders:
> 220-- Welcome to Pure-FTPd [privsep] [TLS] -- 
> 220-You are user number 6 of 188 allowed. 
> 220-Local time is now 22:44. Server port: 21. 
> 220-This is a private system - No anonymous login 
> 220-IPv6 connections are also welcome on this server. 
> 220 You will be disconnected after 30 minutes of inactivity. 
> 500 This security scheme is not implemented 
> 234 AUTH TLS OK. 
> 331 User xxx OK. Password required 
> 230 OK. Current restricted directory is / 
> 200 PBSZ=0 
> 200 Data protection level set to "private" 
> 257 "/" is your current location 
> 250 OK. Current directory is /public_html 
> 250 OK. Current directory is /public_html/traditionaltaekwondo.org 
> 500 Unknown command 
> 227 Entering Passive Mode (192,99,207,157,134,188) 
> 200 TYPE is now 8-bit binary 
> 550 I can only retrieve regular files --
> Uploading file 2024_calendar_events.txt to 
> ftp://xxx.serversignin.com/public_html/traditionaltaekwondo.org/calendar_events_data
> Transfer complete with server response code tsneterr: (13) Bad PASV/EPSV 
> response: 250
> 
> tRecvHeaders:
> 227 Entering Passive Mode (192,99,207,157,126,230) 
> 250 OK. Current directory is / 
> 250 OK. Current directory is /public_html 
> 250 OK. Current directory is /public_html/traditionaltaekwondo.org 
> 250 OK. Current directory is 
> /public_html/traditionaltaekwondo.org/calendar_events_data 
> tsNetGetTimeouts: 60,0,30,6,30,1000
> 
> 
> server responses from LC 9.6.8 successful attempt:
> 
> Downloading FTPS directory listing for 
> /public_html/traditionaltaekwondo.org/calendar_events_data from 
> ftp://ua873228.serversignin.com
> Transfer complete with server response code tsneterr: (78) The file does not 
> exist--
> tRecvHeaders:
> 220-- Welcome to Pure-FTPd [privsep] [TLS] -- 
> 220-You are user number 2 of 188 allowed. 
> 220-Local 

Re: LiveCode server as OAuth2 client for APIs?

2023-12-08 Thread Ralf Bitter via use-livecode

Hi Keith,

to avoid creating too much noise here, let's continue
the conversation on the revIgniter mailing list. You'll find my
answer there.


Ralf



On 07.12.2023 18:01, Keith Clarke via use-livecode wrote:

Hi Ralf,
Thanks for the guidance and updated formHelper script - and apologies to folks 
not using LiveCode Server or RevIgniter - I now realise this should have been 
posted on the use RevIgniter list.

I’ve now got a basic button that submits a form data post to the Salesforce 
authorisation server. However, there are a couple of issues, which are probably 
due to me misreading the user guide (again!) and/or getting confused over what 
markup goes into controller and view files for RevIgniter.

I’m using a controller file to prepare and add to the gData[] array both the 
form contents and submit button, which are then accessed in the view file, 
using the following...



In the controller file, I first used the recipe for ‘Adding Hidden Input 
Fields’ to create an array for the third ‘hidden’ parameter of the 
rigFormOpen() function. This worked as a POST but all the hidden fields are 
visible in the view file’s html. This is rather insecure for authentication, 
revealing consumer_id (and in future, client_secret, which I’ll need to add to 
increase security once basic access is proven).

So, I’m hoping the rigFormHidden(tData) recipe can keep the hidden content 
‘LiveCode-side' until post submission and out of the HTML. So far the hidden 
values don’t seem to be getting into the POST, as I’m getting an unsupported 
request type (so the ‘response_type=code’ is not being received).

I’m sure I am taking the wrong approach, as well as incorrect syntax in my 
controller handler - as if I understand things correctly, the way I’ve got 
parameter three of the rigFormOpen() call pointing at gData[‘hidden’] would, if 
successful, render the hidden contents visible in the view file’s html...

   # Prepare Salesforce login form
   
 # Load form helper library

 rigLoadHelper "form"
   
   # Prepare hidden parameter data array

 put “XXsomeClientIdXX" into aHidden["client_id"]
 put URLencode(“XXsomeRedirectURLXX") into aHidden["redirect_uri"]
 put "code" into aHidden["response_type"]
 put rigFormHidden(aHidden) into gData["hidden"]
 
 # Prepare form

 put rigFormOpen(“XXauthoirisationServerURLXX", “", gData["hidden"]) into 
gData["formOpen"]
 
 # Prepare submit button

 put "sfLoginBtn" into aData["name"]
 put "sfLoginBtn" into aData["id"]
 put "btn btn-primary" into aData["class"]
 put "submit" into aData["type"]
 put "Salesforce Login" into aData["value"]
 
 put rigSubmitButton(aData) into gData["submit"]
   
   # put "Topic1,Topic2,Topic3" into gData["ListItems"]


   get rigLoadView("homeMainView")

I’m probably making multiple newbie errors, but I’ve been unable to find any 
worked examples of RevIgniter controller and view file markup for form posting. 
So, I’d be obliged for any hints and tips.
Best,
Keith


On 6 Dec 2023, at 17:53, Ralf Bitter via use-livecode 
 wrote:

Hi Keith,

using revIgniter you can always hard code the opening
form tag, this way you can use any URL as an action
attribute.

However, your message has prompted me to change the
rigFormOpen() function so that you can override the
current URL with the value of an optional action
attribute included in the second parameter.
So, if you like, you can download the modified
version of the form helper at:

https://github.com/revig/revigniter/blob/develop/system/helpers/formHelper.livecodescript


Ralf



On 06.12.2023 11:00, Keith Clarke via use-livecode wrote:

Hi folks,
Does anyone have experience of using OAuth2 with LiveCode server, to log into 
third-party data sources for API access?
  I am experimenting with a web based utility app that runs on LiveCode server & 
RevIgniter and I need to be able to log into a Salesforce.com  
account to pull data into the app via APIs. I’m following the Salesforce Oauth 2.0 Web Server 
Flow for Web App Integration 
https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_web_server_flow.htm=5
 and
I’ve configured the LiveCode app as a connected app in a Salesforce developer 
instance, to create a consumer id, with which I can request an authorisation 
code. This requires a POST to a Salesforce endpoint, which, if successful 
redirects to a page on the Salesforce authorisation server to provide login 
credentials. This is where I’m stuck...
The LiveCode OAuth2 library seems to be desktop centric (expecting any 
redirects via the loopback IP address of 127.0.0.1, rather than a URL); the 
RevIgniter forms library seems to support posts to URLs within the LiveCode app 
but not third party URLs; and if I create a LiveCode file to ‘post data to URL 
tSalesforceAuthURL’ from within RevIgniter, I can’t see any option to follow 
redirects and so, unsurprisingly, the page URL doesn’t change.
Any advice