Skip to main content
All docs
V25.2
  • 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

    public bool SupportNavigationPermissionsForTypes { get; set; }

    Property Value

    Type Description
    Boolean

    true to enable navigation permissions; otherwise, false

    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