Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get browser authentication popup?

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

enter image description here

like image 555
saplingPro Avatar asked Apr 11 '14 06:04

saplingPro


People also ask

What is authentication popup?

The basic authentication pop-up is similar to the alert that pop-ups when the browser is navigated to a specific web page. To handle the basic authentication popup, we can pass the username and password along with the web page's URL.

How do I get basic authentication on my browser?

We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL.


1 Answers

This popup is part of the HTTP-Authentication. In order to get it, you need to enable it in your web server. As Wikipedia puts it:

When the server wants the user agent to authenticate itself towards the server, it can send a request for authentication.

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

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

like image 184
niklasfi Avatar answered Oct 05 '22 23:10

niklasfi