0

There are some kind of logins in asp.net MVC. for instance there is individual or windows login. I saw some kind of login popup in TFS server that you can see it in following photo:

TFS login popup

My question is what is this kind of login called? and how can I implement some sort of this in my asp.net MVC website that use active directory to login?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
rsangin
  • 482
  • 3
  • 9

1 Answers1

0

It's called "Basic Authentication".

To make the browser ask for the basic authentication credentials, your server has to return a 401 HTTP response with the correct header:

WWW-Authenticate: Basic realm="basic"

You can see here full examples how to implement basic authentication in ASP.NET MVC.

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114