Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Idhttpserver force Login/password
#1
I am writing a IdHttpsServer application, which requires that the connecting web browser login with username and password.

I am not a HTML specialist, but I remember that basic authentication would pop-up a (what looks like) *internal* web browser window where the Login and Password can be entered, after which these are send back to the Server in the 'Basic' authentication format.

So they show up in ARequestInfo.AuthUsername and ARequestInfo.AuthPassword.

How do I 'force' this to happen on the Browser side?  I was looking for a IdHttpsServer option to force this request, but can't find anything; So it must be a special HTML command/webpage to generate this on the browser side?
---
Bart Kindt
CEO and Developer
SARTrack Limited
New Zealand
www.sartrack.nz
Reply
#2
To enforce basic authentication on the browser side, you need to send the appropriate HTTP headers in the server's response. The browser will then handle the authentication process and prompt the user for a username and password.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)