Catch exceptions from RequiredRole and other policies to redirect using Fluent Security
问题 Using Fluent Security, I have configured website access using DenyAnonymousAccess, DenyAuthenticationAccess and RequireRole. SecurityConfigurator.Configure(configuration => { configuration.ResolveServicesUsing(new FluentSecurityServiceLocator()); configuration.GetAuthenticationStatusFrom(CurrentUser.IsAuthenticated); configuration.GetRolesFrom(CurrentUser.Roles); configuration.For<HomeController>().DenyAnonymousAccess(); configuration.For<ReportsController>().RequireRole(UserRole