Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
General DB Class
Message
 
To
17/06/2003 15:56:55
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00800788
Message ID:
00801040
Views:
20
Are your UI and DB objects executing on the same thread? If they are then they are executing in the same security context so whatever security information is available to your UI is also available to your DB objects.

If you are using your own custom security then you can construct a GenericPrincipal and assign it to the current thread and it will be available to all executing components.

GenericPrincipal MyPrincipal = new GenericPrincipal(MyIdentity, MyRoles);
//Attach the principal to the current thread.
Thread.CurrentPrincipal = MyPrincipal;

I just think that having such a high level layer create your connection is going to be a bad design. The connection should be manged at the lowest level possible (DAL).

>David.
>
>The reason we would need to pass the connection is because
>we get an instance of the connection once we go through a security class.
>
>Alvin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform