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



Trouble Setting Up SecurityExpand / Collapse
Author
Message
Posted 05/11/2007 3:57:32 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 06/25/2007 3:10:17 PM
Posts: 21, Visits: 84
I'm having some trouble setting up security. I've been through the documentation and examples a couple times and believe I have everything setup correctly. The problem I'm having is that the app in not authenticating the user. I'm not getting any exception, only a message form saying "the given credentials could not be authenticated...". I've double checked the settings in the security editor everything looks fine. Could there be anything else that I've been overlooking, or something that is commonly overlooked?
Post #8747
Posted 05/11/2007 9:50:41 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 12:47:23 AM
Posts: 4,556, Visits: 4,543
Without looking at your code it is hard for me to give you any type of exact answer, but some common errors include forgetting to set the security key and vector to the same in the AppMain.vb (or program.cs) (look in the InitApplication() method) and the security editor.  These values must match:

SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication("MyKey")

Next, have you made sure that your data source has either the security tables or that you have set the security data source key to point to the proper database if they are not housed within your default database?  This code will also be in the AppMain.vb or program.cs file.  If you have deployed the security tables through the DDT to same database your applicaiton is using for everything else, then you do not need to do anything here.  However, if you are storing the SFSxxx tables in a different database than your default, you must setup that data source as well and then set the SecurityDataSourceKey property:

SecurityBasics.SecurityDataSourceKey = "MyDataSourceKey"

Last, be sure to run and look at how the Role-Based Security sample is setup.  This sample comes with the framework and you have the source code in both VB.NET and C#.  Let us know if none of these options work for you and we will go from there.

Post #8748
Posted 05/14/2007 7:50:11 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 06/25/2007 3:10:17 PM
Posts: 21, Visits: 84
As far as I can tell, everything is set up properly. But it still doesn't work. I can get the login form to show but when the credentials are entered, authentication fails. I have one user, John Doe with a simple password jd. I've created a user role and assigned the user this role. I've also assigned the user grant permission for the MDIMainForm. Here are my Solution Preferences and Security Properties. I've attached a copy of my AppMain.vb.







Post #8758
Posted 05/14/2007 8:50:04 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
Well, if you've called the
SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication("CMPR.SecurityKey")

command within the InitApplication() of your AppMain.vb (or Program.cs), then the only other thing that could be wrong is that your users are not deployed to the SFS tables that are referenced at runtime.

Are the SFS tables part of your database?  Are the users and permissions deployed from the StrataFrame database (used by design-time) to those tables?


www.bungie.net
Post #8760
« 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 8:46am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 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.