User security object accessed from business object

User security object accessed from business object

Old forum URL: forums.lhotka.net/forums/t/4224.aspx


rbellow posted on Wednesday, January 23, 2008

What would be the equivalent to

Object.UserID = User.Identity.Name

when working inside the business object.

I think you can access the custom security principal. I have seen examples and now I can find them. I want to be able to get the user that is logged in and not depend on the interface developers to make sure they code this right.

RockfordLhotka replied on Wednesday, January 23, 2008

Object.UserID = Csla.ApplicationContext.User.Identity.Name

Copyright (c) Marimer LLC