Losing custom identity
martymcdonald_at_comcast.net
Date: 07/29/05
- Next message: Joe: "Forms authentication not working right"
- Previous message: Rai Yawar Ijaz: "Re: Exception Access denied , creating a new excel object in ASP.Net"
- Next in thread: martymcdonald_at_comcast.net: "Re: Losing custom identity"
- Reply: martymcdonald_at_comcast.net: "Re: Losing custom identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 29 Jul 2005 06:35:08 -0700
For authentication we are using an external DB. I can use Forms
authentication and use the loginUrl="MyLoginForm.aspx" just fine. But
for authorization, we cannot use a static list of roles for people,
their authorization depends on factors which change as they use the
system.
We must determine roles on every page hit, using information in our
custom identity, which is changed as user uses system. I examine
custom identity, determine roles, create principal accordingly, then
attach it to HttpContext.Current.User. But after redirecting to
another page, the HttpContext.Current.User identity reverts back to a
"Windows" identity and also the principal's information is gone too
(reverts to generic principal without my role info).
How does one modify the HttpContext.Current.User and have it persist
between redirects? Thanks!
- Next message: Joe: "Forms authentication not working right"
- Previous message: Rai Yawar Ijaz: "Re: Exception Access denied , creating a new excel object in ASP.Net"
- Next in thread: martymcdonald_at_comcast.net: "Re: Losing custom identity"
- Reply: martymcdonald_at_comcast.net: "Re: Losing custom identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|