Do you really need a form? No matter what you do, you are limited by username and password. If they know this, they get your magic cookie, which allows them. You want them to not see the page if they donβt know the secret, and the basic resolution does this, it is easy to set up and does not require a lot of work on your part.
Do you really need to see the authorization header if the web server cares about you for access control?
In addition, if you provide the application with a well-known list of people (not the public), you can provide access to the web server for other factors, such as the incoming IP address, client certificates, and many other things that are a matter of configuration rather than programming . If you explain your security limitations, we can offer a better solution.
Good luck :)
brian d foy
source share