Forms authorisation - how to redirect to a "you do not have sufficient permission" page???
From: Chris Lewis (chris.lewis@-nospam-exentra.no.spam.thanks.co.uk)
Date: 11/19/02
- Next message: Jerome Tremblay \(Popup! Solutions\): "Test method access"
- Previous message: Rob: "Re: Forms Authentication, Roles Authorization, Session Variables and Application_AuthenticateRequest Help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Chris Lewis" <chris.lewis@-nospam-exentra.no.spam.thanks.co.uk> Date: Tue, 19 Nov 2002 09:46:04 -0000
I have a Forms authentication and authorisation ASP.NET application, and I
have URL-based authorisation set up and working, set up in web.config as
follows:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="Demo1Web" path = "/" loginUrl="Secure/LoginPage.aspx"
protection="All" timeout="10">
</forms>
</authentication>
<authorization>
<allow users="*" />
</authorization>
etc...
</system.web>
</configuration>
etc...
<location path="Secure">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="Accounts">
<system.web>
<authorization>
<allow roles="1, 2"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
What I'd like to know is, is there a way to automatically redirect to a page
other than the standard login page - i.e. a "sorry, you are not authorised
to do this" page?
Thanks, in anticipation.
Chris
- Next message: Jerome Tremblay \(Popup! Solutions\): "Test method access"
- Previous message: Rob: "Re: Forms Authentication, Roles Authorization, Session Variables and Application_AuthenticateRequest Help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|