Can I authenticate a user hotspot with any script?
I know that i can run a remote script by ssh,
but I don’t know if I could force a authentication from a script.
The part between the two green arrows in the diagram above is, and has been, non existent.
However, the end goal can still be emulated with a very simple adjustment: Make the action attribute of the external login page’s form be the alogin.html page.
That way, you still have the external page dictate the look of the login page, but you still have the authentication being performed at the router (which is really the part that’s limited).
If the reason you want an external page to begin with is because you need to do something in addition to “simply” logging a user in, you can set an “on login” script at the router, which can initiate an HTTP request to the server.
Alternatively, you can make the external form’s action NOT be the alogin.html page, do whatever you need to do, and THEN redirect the user to “alogin.html”, where they’ll be logged in.