Authorization Policies and Middleware in ASP.NET 5

Posted by: K. Scott Allen, on 06 Oct 2015 | View original | Bookmarked: 0 time(s)

Imagine you want to protect a folder full of static assets in the wwwroot directory of an ASP.NET 5 project. There are several different approaches you could take to solve the problem, but here is one flexible solution using authorization policies and middleware. Services First, in the Startup class for the application, we will add the required services. public void ConfigureServices(IServiceCollection services) { services.AddAuthentication(); services.AddAuthorization(options => ...

Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 373 | Hits: 27

Similar Posts

  • Validation Application Block Introduction more
  • The SLAR (vol2) on System.Net.Authorization more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD