Re: Forms authentication - Multiple login forms based on directory acc



Hi,

this is not possible. You can however detect in your login page from which area the user is getting forced to login - inspect the ReturnUrl query string.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

I want to use ASP.NET 2.0 forms authentication for my new website. I
have two different distinct types of user roles... "member" and
"admin" each should have access to the /member and /admin directories
respectively.

I can make all that work, but the main question I have is with forms
authentication it seems that you can only have ONE default login form
for the entire application. (loginUrl="~/member/Login.aspx") What I
would like is to be able to redirect the user to a different login
form based on which area they are trying to access. For example if a
user goes here /member/default.aspx  and is not authenticated, they
would be sent to /member/login.aspx. Likewise, if they are not
authenticated and try to access /admin/default.aspx, they are sent to
the login form at /member/login.aspx.

I assume I need to handle via the AuthenticateRequest or
PostAuthenticateRequest application events, but I have no idea where
to start...

Any ideas?

- BK



.



Relevant Pages

  • [Full-Disclosure] Advisory: Dark Age of Camelot - Weak encryption of network traffic exposed persona
    ... Weak encryption in game client exposed customer billing and authentication ... encryption for billing information. ... The login binary has undergone several updates since then. ...
    (Full-Disclosure)
  • Re: [PHP] Is this the best way?
    ... Why is Jason schreefing again? ... maybe I should edit my authentication function... ... attempting to login. ... really be either attempting an authentication *or* outputting some ...
    (php.general)
  • Authentication Sharing Across Apps
    ... For my part "B" question that I had (Login App was not returning ... authentication to calling app), I found the solution. ... Basically, in both the Login App and Calling App Web.Config, I did ... authenticated connection with SQL server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: [PHP] Is this the best way?
    ... Jason Pruim schreef: ... I am attempting to add a little error checking for a very simple login system. ... So maybe I should edit my authentication function... ... really be either attempting an authentication *or* outputting some message ...
    (php.general)
  • Unable to get IP Address from DHCP server - 802.1x authentication
    ... user based VLAN authentication with Windows client as ... Authentication method: MD5-Challenge ... Login locally with the cached profile of user1 ... After entering the Radius server username & password the ...
    (microsoft.public.win2000.security)