T
T
Tuesday2013-12-05 14:37:19
IIS
Tuesday, 2013-12-05 14:37:19

ASP.NET HTTP authentication in IIS using text file?

It is necessary to make HTTP authentication in the simplest form. Login/password can be stored in a file on disk. On Apache it looked like this:

AuthUserFile /Library/WebServer/Documents/xxx/.devhtpasswd
AuthName "Restricted Area"
AuthType Basic
Require valid-user

Order allow,deny
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
Satisfy Any

Is it possible to implement this in IIS in a simple way?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Guketlev, 2013-12-05
@Yavanosta

Yes, only login and password will be created in users on local machine
stackoverflow.com/questions/5373497/how-do-i-creat...
iis basic auth > google

T
Tuesday, 2014-03-19
@Tuesday

What you describe works fine for IIS basic auth with an index.html file, I checked.
But only does not work in ASP.NET MVC 5.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question