Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Graphics files with Forms Based Authentication

Reply
Thread Tools

Graphics files with Forms Based Authentication

 
 
Jason - MCSD
Guest
Posts: n/a
 
      02-09-2007
I am able to implement Forms Based Authentication successfully, following the
example in this link:
http://support.microsoft.com/kb/326340/

Although functional, the resulting page (logon.aspx) is plain vanilla. I
just want to dress it up by adding a company logo to this logon page. So, I
added an image element to the page. The image never displays before a user
logs into the website. Interestingly, after the user has been authenticated
and attempts to access logon.aspx, the company logo is displayed. It's as if
all files in the secured directory (including the images) cannot be accessed
until the user has been successfully authenticated.

OK, I understand the concept. "Secure the files until after a user has been
authenticated." Seems like a Catch-22 to me. How would you dress up a logon
page in this context?
 
Reply With Quote
 
 
 
 
Dominick Baier
Guest
Posts: n/a
 
      02-09-2007
put the images in a separate folder and add a location element to web.config,
e.g.

<location path="images">
<system.web>
<autorization>
<allow users="*" />


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

> I am able to implement Forms Based Authentication successfully,
> following the
> example in this link:
> http://support.microsoft.com/kb/326340/
> Although functional, the resulting page (logon.aspx) is plain vanilla.
> I just want to dress it up by adding a company logo to this logon
> page. So, I added an image element to the page. The image never
> displays before a user logs into the website. Interestingly, after
> the user has been authenticated and attempts to access logon.aspx, the
> company logo is displayed. It's as if all files in the secured
> directory (including the images) cannot be accessed until the user has
> been successfully authenticated.
>
> OK, I understand the concept. "Secure the files until after a user
> has been authenticated." Seems like a Catch-22 to me. How would you
> dress up a logon page in this context?
>



 
Reply With Quote
 
 
 
 
Jason - MCSD
Guest
Posts: n/a
 
      02-09-2007
Dominick,

Thanks for the timely and relevant response! This worked perfectly.

-Jason



"Dominick Baier" wrote:

> put the images in a separate folder and add a location element to web.config,
> e.g.
>
> <location path="images">
> <system.web>
> <autorization>
> <allow users="*" />
>
>
> -----
> Dominick Baier (http://www.leastprivilege.com)
>
> Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
>
> > I am able to implement Forms Based Authentication successfully,
> > following the
> > example in this link:
> > http://support.microsoft.com/kb/326340/
> > Although functional, the resulting page (logon.aspx) is plain vanilla.
> > I just want to dress it up by adding a company logo to this logon
> > page. So, I added an image element to the page. The image never
> > displays before a user logs into the website. Interestingly, after
> > the user has been authenticated and attempts to access logon.aspx, the
> > company logo is displayed. It's as if all files in the secured
> > directory (including the images) cannot be accessed until the user has
> > been successfully authenticated.
> >
> > OK, I understand the concept. "Secure the files until after a user
> > has been authenticated." Seems like a Catch-22 to me. How would you
> > dress up a logon page in this context?
> >

>
>
>

 
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
Forms Based Authentication, Except on Certain Files - Steve - ASP .Net 1 06-21-2004 10:45 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