StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Logged in User ProblemExpand / Collapse
Author
Message
Posted 12/18/2007 3:03:58 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 09/18/2008 1:34:08 AM
Posts: 7, Visits: 23
Hi,

 I am new in StrataFrame. I have problem to access the user information from web application.

I created a new user from the RoleBasedSecurity editor and trying to validate by custom login form in .aspx page.

I done the following setting in Global.asax:

DataLayer.DataSources.Add(new SqlDataSourceItem("", "server=ssaxena;integrated security=SSPI;database=StrataFrame"));

MicroFour.StrataFrame.Security.SecurityBasics.IsWebEnvironment = true;

cmdOk_Click:

MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO sfUsers = null;

MicroFour.StrataFrame.Security.Login.LoginResult loResult = MicroFour.StrataFrame.Security.Login.AuthenticateUser("someshv", "jan@123", "", ref sfUsers); [ This userName and password is created in database by security editor ]

if (loResult.Equals(MicroFour.StrataFrame.Security.Login.LoginResult.Success))

Response.Write("Success");

if (loResult.Equals(MicroFour.StrataFrame.Security.Login.LoginResult.Failure))

Response.Write("Failure");

else

Response.Write("Nothing");

 

This returns me always failure. I am not getting any help. Can you tell me where I am wrong? or you can provide me any good documentation(besides StrataFrame doc) or sample application (besides Web Application Sample).

Post #13071
Posted 12/18/2007 4:26:12 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
You're missing one little piece... you need to set the seed for the encryption key and vector that is used to encrypt the password in the database.  MicroFour.StrataFrame.Security.SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication().  The value that you pass to that method should be the same string that you put in the security project properties for the User Data Encryption: Security Key: field.  Make those 2 values match, and you should be able to log in fine.


www.bungie.net
Post #13083
Posted 12/18/2007 10:53:40 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 09/18/2008 1:34:08 AM
Posts: 7, Visits: 23
hi,

 Thanks for reply. Now it's work fine. Thanks

Post #13084
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:23am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 15 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.