StrataFrame Forum

Security Maintenance User

http://forum.strataframe.net/Topic3720.aspx

By Larry Caylor - 10/20/2006

I’m getting an ‘Access Denied’ error message when trying to login to my application using the built in security maintenance user account. Is there any additional configuration required beyond setting up the user name and password in AppMain? The administrator user works fine.

-Larry

By Trent L. Taylor - 10/20/2006

The problem you are having is that the user does not explicitly have the permission to the form and your DefaultPermissionInfo property is set to Deny by default.  In your InitApplication() method you can define your DefaultPermissionInfo to grant by default if you prefer.  It would look something like this:

SecurityBasics.DefaultPermissionInfo = New PermissionInfo(PermissionAction.Grant, _
    "Access Denied.", DeniedActions.Message)

You can get more information in the docs under the following section:

Creating a New Application with Security

Go to the very bottom and you will see the Specify Default Security Settings.

By Larry Caylor - 10/20/2006

I downloaded the latest security documentation and it’s much better than the version that I had been working with, but I’m still not clear one (and more likely moreWink) thing.

 

Is there a way to assign permissions or roles to the built in security maintenance user?  If that user only has access to the security dialog, how do you provide a means to navigate to the application menu that launches the dialog? Is this a situation where you would use a ‘gateway’ form?

 

-Larry

 

By Trent L. Taylor - 10/20/2006

Is there a way to assign permissions or roles to the built in security maintenance user?

No.  This user is designed to just allow security users, etc. to be setup while maintaining the applications overall security.

If that user only has access to the security dialog, how do you provide a means to navigate to the application menu that launches the dialog?

The menu item itself does not have to be assigned a permission.  When you call the SecurityDialog form this user will be granted permission.

Is this a situation where you would use a ‘gateway’ form?

This is definitely another option.