How can I use Digest Authorization with my ASP.NET site?

I want to require a popup for users to enter in order to access my site. For username, password .. I was hoping to have some hardcoded names / passwords in some file. I was told that digest authorization can be used for this.

If I have a standard ASP.NET website, where can I define the username / password?

note that this username / password only "unlocks" the site .. but does not register them with the site. they will need their username / password for this.

Hope it does.

Please, help!

-1


source to share


2 answers


Depending on your computer access, a really simple option is a program called IISPassword, some of which install this package, which allows you to use apache.htaccess.htpassword style htaccess.htpassword files.

Once this is installed it will take about 5 minutes to set up, just find the unix encryption function to handle passwords and it just works, no need to touch aspnet at all.



Only use this on IIS 5 and 6, but can work on 7.

Hope it helps.

+1


source


I think your users won't appreciate the need to enter two passwords to use your site. I believe you'd be better off sticking with the website login as your only means of accessing the site and just redirect users without registering to the login page. You may also need an "about us" page available to potential future users if your site is publicly available.



You can find a fairly detailed tutorial on authentication in ASP.NET here . According to this article, Digest Authentication requires you to store user IDs / passwords in Active Directory.

+1


source







All Articles