.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Understanding OWIN Forms authentication in MVC 5

Overview The new security feature design for MVC 5 is based on OWIN authentication middleware. The benefit for it is that security feature can be shared by other components that can be hosted on OWIN. Since the Katana team did a great effort to support the OWIN integrated pipeline in ASP.NET, it can also secure apps hosted on IIS, including ...

Manage CORS policy dynamically

Brief We introduced CORS support in ASP.NET Web API a few months ago. Out of the box it supports configuring CORS policy by attributes. It is a very intuitive and powerful way but lacks flexibility at runtime. Imaging your service allows a 3rd party to consume your service. You need the capability of updating the allowing origins list without...

Make VS2012 MVC4 VSIX template to work for Visual Studio 2013 preview

Visual Studio 2012.2 supports customized MVC4 template, you can get a walkthrough here: http://blogs.msdn.com/b/yjhong/archive/2012/12/13/custom-mvc-4-template-walkthrough.aspx or http://www.asp.net/mvc/overview/getting-started/custom-mvc-templates. But the created template VSIX file cannot be uploaded to VS Gallery at the time. Starting ...

Browser Link feature in Visual Studio Preview 2013

Browser Link is just a channel between your Visual Studio IDE and any open browser. This will allow dynamic data exchange between your web application and Visual Studio. This feature is enabled by default in Visual Studio 2013 Preview. When Browser Link is enabled we register an HTTPModule with ASP.NET, which will then inject a <script>...

Get the latest .NET Bits

We maintain a set of pages that make it easier for you to find all the .NET Framework versions, SDKs, and targeting packs that you can take advantage of in your .NET apps, as we mentioned last year on the .NET blog. We recently redesigned the pages and added more SDKs for you to download. You may even find some SDKs to try that you didn’t ...

Adding External Logins to your ASP.NET application in Visual Studio 2013

The project templates showcase a way of logging in with external login providers, along with the normal way of logging in by creating a local account This post highlights how you can turn on support for logging through these services in the ASP.NET project templates that shipped with Visual Studio 2013 Preview. To learn more about how ...

HTML Editing Features in Visual Studio 2013 Preview

The Preview Release of Visual Studio 2013 contains a surprising addition: a brand new HTML editor! In fact, VS 2013 contains two HTML editors. The story’s a little complicated, so this article will do its best to simplify the matter. Visual Studio 2012 included a brand new CSS editor, implemented entirely in managed code and highly ...

ASP.NET updates to support Windows Azure Active Directory

Today we released an update to the Visual Studio **2013 Preview **which enables you to create ASP.NET applications which use Windows Azure Active Directory for authentication. In this post I will describe; how you can get the additional support, where to find more info and a list of known issues. How to get the latest support In order to ...