Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Forms Authentication Access Rules

Reply
Thread Tools

Forms Authentication Access Rules

 
 
=?Utf-8?B?QnJhbmRvbiBTdGFsdGU=?=
Guest
Posts: n/a
 
      06-23-2006
I've implemented forms authentication for my application. I would like to use
access rules by creating individual web.config files in folders to
allow/disallow access to directories. My problem is when I create an access
rule for a directory to disallow a role or user, when that user in the role
attempts to access the directory they are kicked out of the application which
is fine, but the login page has the redirect url pointing back to the page
they don't have access to (i.e.
http://localhost/App1/Login.aspx?Ret...dLoading.aspx).
Because the login page contains the non accessible redirected url, the user
justs loops back to the login page over and over again. Is there any way to
stop this without writing code page by page to check that a user is in a
certain role?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJhbmRvbiBTdGFsdGU=?=
Guest
Posts: n/a
 
      06-23-2006
Is there an event I could capture to say whenever an access rule attempts to
kick someone out of the application, redirect them to a NoPermissions.aspx
page and have this event system wide not just per page?

"Brandon Stalte" wrote:

> I've implemented forms authentication for my application. I would like to use
> access rules by creating individual web.config files in folders to
> allow/disallow access to directories. My problem is when I create an access
> rule for a directory to disallow a role or user, when that user in the role
> attempts to access the directory they are kicked out of the application which
> is fine, but the login page has the redirect url pointing back to the page
> they don't have access to (i.e.
> http://localhost/App1/Login.aspx?Ret...dLoading.aspx).
> Because the login page contains the non accessible redirected url, the user
> justs loops back to the login page over and over again. Is there any way to
> stop this without writing code page by page to check that a user is in a
> certain role?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
Forms authentication - Multiple login forms based on directory acc Keltex ASP .Net Security 1 01-24-2006 03:06 PM
rules for Cisco PIX 525 firewall rules KAS Cisco 2 10-02-2005 07:12 PM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57