Blog

Technology tidbits

CAS Custom Role Provider

March 9, 2015 by Chris Sherman

The CAS authentication service is a single sign-on solution for web services used by a number of universities. When authenticating with CAS, the server has the option of embedding a list of user roles inside the encrypted authentication cookie. In this tutorial, I’ll explain how to write a custom role provider in ASPASP Dot Net MVC applications to extract the roles passed from the authentication server and integrate them with ASP.NET role authorization.

If you don’t already have your app configured to use CAS authentication, check out my post on getting started with the .NET CAS Client.

Continue reading

Use BrowserSync with Visual Studio

March 6, 2015 by Chris Sherman

BrowserSync is a synchronized browser testing tool with an ever-expanding suite of features. Fundamentally, BrowserSync will watch files for changes, alleviating the need to manually refresh the browser. In this tutorial I’ll explain how to integrate BrowserSync with Visual Studio.

Continue reading

Copy File If It Doesn't Exist with Grunt Plugin grunt-contrib-copy

March 5, 2015 by Chris Sherman

Grunt’s copy plugin, grunt-contrib-copy, is helpful for tasks like copying CSS and JavaScript from a Bower components folder to a friendly directory. Copying files is problematic, however, when you’ve modified the destination files and don’t want your changes overwritten the next time the copy task runs. In this tutorial I’ll explain how to add a filter to the copy task to ignore files that already exist.

Continue reading

Rename Copied Files Using Grunt Plugin grunt-contrib-copy

March 4, 2015 by Chris Sherman

Grunt’s copy plugin, grunt-contrib-copy, comes in quite handy for tasks like copying CSS and JavaScript from a Bower components folder to a friendly css/ or js/ directory. In this tutorial, I’ll show you how to extend copy tasks to rename files in the destination folder.

Continue reading

Integrate CAS with ASP.NET Applications

March 3, 2015 by Chris Sherman

The CAS authentication system started as a project at Yale University and is now used by a number of higher education institutions. The CAS NuGet package, authored by Jasig, provides CAS authentication for ASP.NET applications. In this tutorial I’ll explain my process for integrating CAS with modern MVC applications.

Continue reading

Publish from Adobe Dreamweaver to Microsoft Azure

March 2, 2015 by Chris Sherman

  1. In the Microsoft Azure management portal, select New > Compute > Website > Quick Create and complete the prompts to create a new website instance.

Continue reading

Set Up Umbraco in Visual Studio with LocalDB and Deploy to Azure

February 27, 2015 by Chris Sherman

Since Microsoft has deprecated SQL Server Compact, it makes sense to transition your Umbraco development environment to a supported database solution. In this tutorial, I’ll first explain how to configure an Umbraco CMS project in Visual Studio using LocalDB for development. Next, I’ll show you how to deploy the project to Microsoft Azure Websites using an Azure SQL Database.

Continue reading

Inverse Foundation Top Bar to Light Background

February 26, 2015 by Chris Sherman

Foundation 5 ships with a dark navigation bar and, unlike Bootstrap, does not have a class to quickly inverse the color scheme. To change the Foundation Top Bar to dark text on a light background, open the _settings.scss file and replace the Top Bar variables section with the settings below.

Continue reading

Razor Paging

February 25, 2015 by Chris Sherman

When you have large numbers of a particular object, it can be beneficial to add paging to limit the number of instances displayed. In this tutorial, I’ll demonstrate a Razor paging implementation that you can use with the Umbraco CMS as well as other projects that make use of Razor.

Continue reading

Initial Values for Entity Framework Code First Forms

February 24, 2015 by Chris Sherman

In this tutorial, I’ll explain how to initialize Entity Framework Code First views with default values. Entity Framework Code First provides a declarative method for easily creating CRUD applications with the ASPASP Dot Net MVC framework.

Continue reading