Combined Windows and Forms Authentication ASP.NET 2

D

deveti putnik

Hi!

I was wondering how can I combine Windows and Forms Authentication in
following scenario: when user approaches web app through local IP
address, he authenticates himself with WIndows Authentication, but if
web app is approached through public IP address, he should be
authenticated with Forms Authentication. How can I do this?

Very interesting question, isn't it? :)

Thanks a lot,
Deveti Putnik
 
G

Gregory A. Beamer

Hi!

I was wondering how can I combine Windows and Forms Authentication in
following scenario: when user approaches web app through local IP
address, he authenticates himself with WIndows Authentication, but if
web app is approached through public IP address, he should be
authenticated with Forms Authentication. How can I do this?

Very interesting question, isn't it? :)

Not really, it is done all the time.

One of the easiest ways is to set up two sites with the same code base,
but different authentication methods. I say this is easier, as the
programmer need only solve one problem at a time.

If you want the direction you are going, the site is set to forms
authentication, generally, and you authenticate an internal user either
to a mapped forms auth account or a single forms auth account (depending
on auditing needs). You can easily capture windows auth on the login
page (when user is redirected) by adding a check here. This keeps the
check in one place.

Mark also has a suggestion for finding more information.

Peace and Grace,
 
D

deveti putnik

Thanks, guys!



Not really, it is done all the time.

One of the easiest ways is to set up two sites with the same code base,
but different authentication methods. I say this is easier, as the
programmer need only solve one problem at a time.

If you want the direction you are going, the site is set to forms
authentication, generally, and you authenticate an internal user either
to a mapped forms auth account or a single forms auth account (depending
on auditing needs). You can easily capture windows auth on the login
page (when user is redirected) by adding a check here. This keeps the
check in one place.

Mark also has a suggestion for finding more information.

Peace and Grace,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top