![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it a good practice by putting princicple object in Context? Is it possible to spoof the Context.Current.User? //code in global.asax Sub Application_OnAuthenticateRequest(ByVal Source As Object, ByVal Details As EventArgs) 'Authentication code goes here. myPrinciple = ... Context.Current.User = myPrinciple end sub |
#3
| |||
| |||
|
|
I don't know how iPrinciple is written. Since it exists in http context and every page in a same request session can access it. It's possible that a |
|
Frank "Joe Kaplan (MVP - ADSI)" wrote: This is often done in order to implement a custom role-based security system in your web application, so it is definitely considered good practice when that is needed. What do you mean by spoof in this context? Joe K. "Frank J" <FrankJ (AT) discussions (DOT) microsoft.com> wrote in message news:7922AA36-355C-4FBA-824C-26A955FD5A45 (AT) microsoft (DOT) com... Is it a good practice by putting princicple object in Context? Is it possible to spoof the Context.Current.User? //code in global.asax Sub Application_OnAuthenticateRequest(ByVal Source As Object, ByVal Details As EventArgs) 'Authentication code goes here. myPrinciple = ... Context.Current.User = myPrinciple end sub |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |