I am trying to implement StrataFrame role based security in one of our ASP.NET applications (It's not a StrataFrame App). I have tried to follow the docs on this and I think I am pretty close, but I seems to have a problem setting the current user, and thus I am having problems extracting the correct permissions.Here is what I have done so far.
1) Added the appropriate references and imports
2) In the application_start, I added SecurityBasics.IsWebEnvironment = True
3) Added the connection for the security database
DataLayer.DataSources.Add("SECURITY",Connection String)
4) Set the security datasource key
SecurityBasics.SecurityDataSourceKey = "SECURITY"
5) Set the current logged in user (using user1 as test and does exist in the db)
Dim loResult as Login.LoginResult
loResult = Login.SetLoggedInUser("user1","password",''")
The result of the login is 'success' but when I check the SecurityBasics.CurrentUser.UserName, I get "Administrator", which is causing me a problem when I check the currentUser.getPermission.
Did I miss something?
Thanks,
Tim