PC Review


Reply
Thread Tools Rate Thread

CurrentContext with forms auth

 
 
Smokey Grindle
Guest
Posts: n/a
 
      5th Feb 2007
I am using forms authentication with a custom user database... I was
wondering, when logging in using forms auth, does the
HttpContext.Current.User return the forms logged in user or the AD user that
is running the web process in that situation? I am assumeing the forms
logged in user


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      5th Feb 2007
Forms user that was authenticated from your custom database, unless you are
doing Forms Auth against the Active Directory store.

Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Smokey Grindle" wrote:

> I am using forms authentication with a custom user database... I was
> wondering, when logging in using forms auth, does the
> HttpContext.Current.User return the forms logged in user or the AD user that
> is running the web process in that situation? I am assumeing the forms
> logged in user
>
>
>

 
Reply With Quote
 
Smokey Grindle
Guest
Posts: n/a
 
      5th Feb 2007
nope, no ad, just against our custom user database.. so I can assume the
context will always be the forms logged in user, as long as there is no
impersination?

"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in
message news:54BBA7B5-11FA-4C91-9D90-(E-Mail Removed)...
> Forms user that was authenticated from your custom database, unless you
> are
> doing Forms Auth against the Active Directory store.
>
> Peter
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net
>
>
>
>
> "Smokey Grindle" wrote:
>
>> I am using forms authentication with a custom user database... I was
>> wondering, when logging in using forms auth, does the
>> HttpContext.Current.User return the forms logged in user or the AD user
>> that
>> is running the web process in that situation? I am assumeing the forms
>> logged in user
>>
>>
>>



 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      5th Feb 2007
asp.net separated the authenticated user and the thread identity.
Current.User is the user name from authentication, and does not need to
match the request Identity.

-- bruce (sqlwork.com)

Smokey Grindle wrote:
> I am using forms authentication with a custom user database... I was
> wondering, when logging in using forms auth, does the
> HttpContext.Current.User return the forms logged in user or the AD user that
> is running the web process in that situation? I am assumeing the forms
> logged in user
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
windows auth and forms auth Smokey Grindle Microsoft ASP .NET 1 8th Jun 2006 04:14 PM
Re: windows auth and forms auth Winista Microsoft ASP .NET 0 8th Jun 2006 03:04 PM
Windows Auth, but Forms Auth for one page? =?Utf-8?B?ZGhucml2ZXJzaWRl?= Microsoft ASP .NET 1 8th Jan 2005 05:50 PM
Configuring Windows Auth & Forms Auth in Asp.Net =?Utf-8?B?Q2hyaXMgTW9oYW4=?= Microsoft ASP .NET 0 28th Apr 2004 07:11 PM
Forms Auth. vs IIS Auth. Kevin Microsoft C# .NET 1 7th Dec 2003 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.