SecurityOptions.SupportNavigationPermissionsForTypes Property
Specifies whether navigation permissions are available for specific role types.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package: DevExpress.ExpressApp.Security
Declaration
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Remarks
static IServiceCollection ConfigureSecurity(this IServiceCollection services) {
services.PostConfigure<SecurityOptions>(options => {
options.Lockout.Enabled = true;
options.Lockout.MaxFailedAccessAttempts = 3;
options.RoleType = typeof(PermissionPolicyRole);
options.UserType = typeof(ApplicationUser);
options.UserTokenType = typeof(UserToken);
options.UserLoginInfoType = typeof(ApplicationUserLoginInfo);
options.SupportNavigationPermissionsForTypes = false;
options.Events.OnSecurityStrategyCreated += securityStrategy => {
((SecurityStrategy)securityStrategy).PermissionsReloadMode = PermissionsReloadMode.CacheOnFirstAccess;
};
});
Refer to the MainDemo.NET.EFCore demo application for the full code example.
See Also