Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Bypassing authentication

Reply
Thread Tools

Bypassing authentication

 
 
Microsoft
Guest
Posts: n/a
 
      08-07-2003
I'm running a web site and implementing both folder(web.config) and class
level authorization. A new requirement came in to allow an external web site
to access some secure web pages directly, without going through the logon
page.

The users are valid users, and I will build the principle object anyway, but
I need to do this before they are being re-directed to the logon page.

Would removing the folder\file reference from the web.config file help?

Thanks
Alex



 
Reply With Quote
 
 
 
 
Eric Newton
Guest
Posts: n/a
 
      08-15-2003
You could do something in the global Application_Authenticate event, whereas
if the HTTP-REFERER field has this "other" website, that it would create a
GenericPrinicipal like:
if( HttpContext.Current.Request.ServerVariables["HTTP_REFERER"] == "external
website" )
Context.User = new GenericPrincipal("extWebsite", ...);

else
/* you other code */

maybe try that... and this would be a good single place to see where the
overrides are, instead of scattering them in separate pages, making
manageability a little harder.

HTH


--
Eric Newton

C#/ASP.net Solutions developer


"Microsoft" <> wrote in message
news:...
> I'm running a web site and implementing both folder(web.config) and class
> level authorization. A new requirement came in to allow an external web

site
> to access some secure web pages directly, without going through the logon
> page.
>
> The users are valid users, and I will build the principle object anyway,

but
> I need to do this before they are being re-directed to the logon page.
>
> Would removing the folder\file reference from the web.config file help?
>
> Thanks
> Alex
>
>
>



 
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
Bypassing authentication John ASP .Net 5 04-18-2006 05:15 AM
How to read data from WLAN card directly and bypassing the TCP/IP =?Utf-8?B?S2V0YW4u?= Wireless Networking 1 05-02-2005 08:54 PM
VPN Client Bypassing Packets jo Cisco 1 03-13-2005 08:37 PM
Bypassing forms authentication for one site if coming from another. How? David Hearn ASP .Net 2 07-16-2004 02:20 PM
bypassing directly connected network Jeremy McMasters Cisco 5 11-11-2003 01:41 AM



Advertisments