Form Authentication

  • Thread starter Thread starter Anil
  • Start date Start date
A

Anil

Hi All,

We will be using form authentication in out website. We have two totally
different types of users in our site.

Type 1
Has 2 different roles in it

Type 2
Has 3 different roles in it


The data we collect for Type 1 is very different than Type 2.

That's why, we want to use two different forms authentication at our site.
Just wanted to know is it possible to do it in dot net for a single website.

Please let me know how to do it. If someone has sample code, please send it.

Thanks in Advance,
Anil
 
Hi Patrick,

The example shows only one type of users with 3 different roloes.
But in my case, I have two totally different type of users. And we have 2
different logon.aspx pages.

Any help?

Thanks,
Anil
 
Can you elaborate more..?
U have 2 type of users and a different LOGIN PAGE..!!!
Or maybe ur idea is to implement Authorisation(if u want to use a single
LOGON)page?
Patrick
 
Given your description it sounds like you want to require that the users
from each group use two different sets of logon information in order to
gain access to your site. The problem here is that if the user has
never logged on to your site, how could you possibly know in advance,
which set of information to request from the user in the logon page? I
hope that sums up your dilemma.

There are two possible solutions that come to mind here: First you could
try and define a generic logon page that both sets of users could use
then modify behavior after that. Second you could provide a dropdown box
for the user to select their "type" from (i.e. Type A belongs to two
roles, Type B belongs to three), do an auto post back based on their
selection you then display the appropriate logon request.

Short of having Windows authentication in the mix telling you which
groups the user belongs to in advance you will have these kind of
workarounds. Then again if you were using Windows Authentication you
wouldn't need forms authentication, would you?

We may be able to come up with a better possibility for you if you could
tell us what the differences in the logon information you require are
(i.e. Type A needs a logon name and password only; while Type B needs a
logon name, password, domain, and a checkbox used for xyz purpose).

Have A Better One!

John M Deal, MCP
Necessity Software
 
Back
Top