467,907 Members | 1,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

CurrentContext with forms auth

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
Feb 5 '07 #1
  • viewed: 1219
Share:
3 Replies
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
Feb 5 '07 #2
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]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:54**********************************@microsof t.com...
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

Feb 5 '07 #3
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

Feb 5 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Brad | last post: by
reply views Thread by Chris Mohan | last post: by
2 posts views Thread by code | last post: by
8 posts views Thread by =?Utf-8?B?TFc=?= | last post: by
4 posts views Thread by =?Utf-8?B?RmFyaWJh?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.