Been playing with my own cigaret package sized passively cooled (the alu case itsself is the cooler) RK3588 8-core Linux box and cheap domain name. And getting Certbot going, HTTPS works fine. And figure out FTP. Once you know how it works, it's easy as with everything
Now as I get into security, I have a problem. I use SqlLite/NodeJS. Static SecurityProvider. MacOs. When I put a SecureRestrict server API on a restrictedPage, the logon redirect part works well and opens my login page. Logging in works fine. However when I enter wrong credentials, this opens a sortof Chrome password (modal) dialog (not something that is defined in Wappler!) that won't go away WHATEVER I type, unless I use the cancel button. Therefore the unauthorized redirect does not work. Any ideas?
(Log on/Log off test buttons do work, I made sure of that, as long as correct credentials)
Local Server, just localhost:3000, as long as it's development. See code below. In fact it all functionally works, that's important to note. And these are my first steps with secured pages and this knowlegde will be later needed later for admin pages. Thanks for taking the time.
Can you try: dmx-on:unauthorized.prevent="notifies1.info('Unauthorized event')" ?
Maybe worth the try
@Apple is right here, and that's a WWW-Authenticate header on a 401 response that (according to some outside topics like stackoverflow) it's simple to avoid.. maybe @patrick can help on this:
Ah, thanks a lot for confirming I am not crazy yes, I have googled likewise posts about the 401 headers. And yes, you have a couple of interesting points to try. Immediately tried the dmx-on:unauthorized.prevent but that didn't change a thing, same behaviour. The other points I will try later. Thanks for your help, much appreciated! Also I wonder: are others not having this issue?
Hello all, especially Apple and Franse, the posted code of Franse made it clear that the flag "Basic Auth" which we can set in the Security Provider plays a role in this. And YES, once I cleared that flag (and clearing browser cache) everything works as expected. Thanks a lot for your suggestions and thinking with me (for me? )