How to get a browser popup?

Can someone tell me how can I get this browser authentication window?

enter image description here

+6
source share
3 answers

This popup is part of HTTP authentication . To get it, you need to enable it on your web server. As Wikipedia writes:

When the server wants the user agent to authenticate the server, it can send an authentication request.

This request should be sent using an HTTP 401 Not Authorized Response code containing the WWW-Authenticate HTTP header.

The WWW-Authenticate header for basic authentication (most commonly used) is constructed as follows: WWW-Authenticate: Basicrealm="insert realm"

+9
source

This type of window appears when the web server answers the request, returning the status code "Unauthorized" (401). You will need to tell the server to send this type of response in order to pop up a window.

0
source

The authentication you say is called basic authentication in the web application, where the browser popup will be used to obtain the user credentials.

Which Java application server are you using?

To learn more about Basic Authentication, see this page.

0
source

All Articles