Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > User.Identity.IsAuthenticated and requireSSL=true

Reply
Thread Tools

User.Identity.IsAuthenticated and requireSSL=true

 
 
TH
Guest
Posts: n/a
 
      12-12-2006
Hi All

If I set an ASP.NET 2.0 site to forms authentication mode with
requireSSL=true, and I log in though https, then as soon as I swap back
to http mode, User.Identity.IsAuthenticated becomes false again and I
lose all the previous Identity information. Can anyone tell me how I'm
supposed to make use of User.Identity without running the whole site in
SSL?

Thanks, TH.

 
Reply With Quote
 
 
 
 
Dominick Baier
Guest
Posts: n/a
 
      12-13-2006
You have to run all pages that rely on authentication under SSL - on every
request the authentication cookie is round-tripped and you don't that to
be stolen or sniffed from the wire.

requireSSL sets the "secure" flag on cookies - meaning they are not sent
if the wire is not secure - resulting in a empty Context.User.

You should partition your site in areas that need auth and areas that don't.
Or run the whole site on SSL.

have a look here:

http://www.leastprivilege.com/Partia...ithASPNET.aspx
http://www.leastprivilege.com/CachingAndSSLPages.aspx
http://www.leastprivilege.com/Expres...Redirects.aspx

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

> Hi All
>
> If I set an ASP.NET 2.0 site to forms authentication mode with
> requireSSL=true, and I log in though https, then as soon as I swap
> back to http mode, User.Identity.IsAuthenticated becomes false again
> and I lose all the previous Identity information. Can anyone tell me
> how I'm supposed to make use of User.Identity without running the
> whole site in SSL?
>
> Thanks, TH.
>



 
Reply With Quote
 
 
 
 
TH
Guest
Posts: n/a
 
      01-04-2007
Good stuff. Thanks very much.

 
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
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM



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