This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
61
Web Server - Ask For Help / Re: Bearer authentication in a webservice - how?
« on: February 26, 2024, 10:09:03 PM »
Hi Niels,
I expect you will want to better understand what they are actually asking for. It sounds like they are assuming that "Bearer" means something, and I'm not sure that you (or I) are on board yet with what it actually means (to them). It might be useful to understand where the token comes from, how it works, and so on.
In terms of incoming requests - there's an Authenticate embed in WebHandler which takes a token. (You're probably familiar with the one that takes user and password, used in basic authentication, but there's also one for brearer.) You can obviously add any code you like to authenticate the token in there.
In terms of what the token is, maybe you generate it - or maybe they generate it? Or maybe it's generated by a 3rd-party service (like "log in with google").
Incidentally an example of bearer token authentication is in Secwin 7. Web apps protected with Secwin 7 allow the user to "be remembered". This generates a token, which is sent to the client. This token is then sent back to the server, and evaluated as above when the user reconnects later on. but that's just an example, I don't know what your requirement actually is.
Cheers
Bruce
I expect you will want to better understand what they are actually asking for. It sounds like they are assuming that "Bearer" means something, and I'm not sure that you (or I) are on board yet with what it actually means (to them). It might be useful to understand where the token comes from, how it works, and so on.
In terms of incoming requests - there's an Authenticate embed in WebHandler which takes a token. (You're probably familiar with the one that takes user and password, used in basic authentication, but there's also one for brearer.) You can obviously add any code you like to authenticate the token in there.
In terms of what the token is, maybe you generate it - or maybe they generate it? Or maybe it's generated by a 3rd-party service (like "log in with google").
Incidentally an example of bearer token authentication is in Secwin 7. Web apps protected with Secwin 7 allow the user to "be remembered". This generates a token, which is sent to the client. This token is then sent back to the server, and evaluated as above when the user reconnects later on. but that's just an example, I don't know what your requirement actually is.
Cheers
Bruce
62
Web Server - Ask For Help / Re: VarnishCheck? slightly NTWS related
« on: February 26, 2024, 02:02:21 AM »
I'm guessing this IP was used by someone before, and set up a health-check.
Follow the link in the User Agent to see if you can turn it off.
Follow the link in the User Agent to see if you can turn it off.
63
Web Server - Ask For Help / Re: Update LineItem option in Accounts example
« on: February 25, 2024, 09:21:54 PM »
sure, adapt the example to include the user interface you have in mind.
A "Save, Insert Another" button, or a checkbox, or a global setting, or whatever other UI you think is appropriate.
Then from that UI I can make suggestions as to what might work, or where an alternate UI might be better.
Cheers
Bruce
A "Save, Insert Another" button, or a checkbox, or a global setting, or whatever other UI you think is appropriate.
Then from that UI I can make suggestions as to what might work, or where an alternate UI might be better.
Cheers
Bruce
64
Web Server - Ask For Help / Re: VarnishCheck? slightly NTWS related
« on: February 25, 2024, 09:20:04 PM »
I'm guessing your old server was on AWS? And the new server is on AWS?
And youve got an Amazon Health Check set up on your web server
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
?
And youve got an Amazon Health Check set up on your web server
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
?
65
Web Server - Ask For Help / Re: Update LineItem option in Accounts example
« on: February 24, 2024, 11:52:11 PM »
I don' think it's designed to be a session value. The decision is made elsewhere.
Feel free to make an example and post here. I'll take a look, but I'm not sure it's possible to do without writing some JavaScript.
Cheers
Bruce
Feel free to make an example and post here. I'll take a look, but I'm not sure it's possible to do without writing some JavaScript.
Cheers
Bruce
66
Web Server - Ask For Help / Re: Embed Duplicated
« on: February 24, 2024, 11:50:42 PM »
fixed for 14.19
67
Web Server - Ask For Help / Re: How to deploy a secure application (settings)? NTWS 12.63
« on: February 24, 2024, 11:50:15 PM »
Hi Hector,
you don't say what version you are upgrading _from_.
But in NT12 security settings are provided at runtime on the Server Settings Control template. Which you can populate onto your WebServer window.
Cheers
Bruce
you don't say what version you are upgrading _from_.
But in NT12 security settings are provided at runtime on the Server Settings Control template. Which you can populate onto your WebServer window.
Cheers
Bruce
68
Web Server - Ask For Help / Re: Issues emulating the Accounts example 31 and FileDownload example
« on: February 21, 2024, 10:08:27 PM »
Global Setting:
WebServer procedure, NetTalk extension, Settings, Defaults, Browse
Row Clicks option. (I'm guessing you may have it as a single-click rot to form)
Local Override:
Browse procedure, Actions, Form tab, Change Button tab, "DoubleClick Row to Form" option.
cheers
Bruce
WebServer procedure, NetTalk extension, Settings, Defaults, Browse
Row Clicks option. (I'm guessing you may have it as a single-click rot to form)
Local Override:
Browse procedure, Actions, Form tab, Change Button tab, "DoubleClick Row to Form" option.
cheers
Bruce
69
Web Server - Ask For Help / Re: Responsive design dropdown list
« on: February 20, 2024, 11:51:09 PM »
Hi Hector,
you may need to post an example of what you are seeing in order to get accurate advice.
Cheers
Bruce
you may need to post an example of what you are seeing in order to get accurate advice.
Cheers
Bruce
70
Web Server - Ask For Help / Re: New API troubles
« on: February 20, 2024, 06:38:21 AM »
Jeff,
I would expect your code to work, and for the TryItNow to work.
Post me a small example so I can see what you are seeing.
Cheers
Bruce
I would expect your code to work, and for the TryItNow to work.
Post me a small example so I can see what you are seeing.
Cheers
Bruce
71
Web Server - Ask For Help / Re: New API troubles
« on: February 19, 2024, 06:09:33 PM »
>> On the Parameters tab, I set the parameter type to table, set the table to Users.tps, choose the unique key on the email field, and then check Allow Read.
this sounds wrong to me. Sounds like the parameter should just be Loc:EmailAddress.
Then in the routine you can write the code to do a fetch on the table etc, and populate the result fields.
Cheers
Bruce
this sounds wrong to me. Sounds like the parameter should just be Loc:EmailAddress.
Then in the routine you can write the code to do a fetch on the table etc, and populate the result fields.
Cheers
Bruce
72
Web Server - Ask For Help / Re: Validate New Password to make sure entries are the same
« on: February 14, 2024, 10:47:14 PM »
less than 12 characters? why so weak?
73
Web Server - Ask For Help / Re: Validate New Password to make sure entries are the same
« on: February 14, 2024, 10:31:29 AM »
yes
74
Web Server - Ask For Help / Re: Net Talk - Scan a document
« on: February 12, 2024, 09:37:45 PM »
>> Would they have to pull up a scanner program in Windows and scan the document and then in the web app pick the file with the document?
yep. I'm not much into scanning myself, but I am not aware of any browser interface to a scanner.
Cheers
Bruce
yep. I'm not much into scanning myself, but I am not aware of any browser interface to a scanner.
Cheers
Bruce
75
Web Server - Ask For Help / Re: Websocket - javascript
« on: February 12, 2024, 09:35:04 PM »
thanks. I've made some tweaks, and will add some docs for that setting for 14.18