Tag Archives: ASP.NET MVC5

Consuming RabbitMQ Messages in ASP.NET MVC

You can create an ASP.NET MVC site that consumes RabbitMQ messages with a persistent connection; here’s how (static variables, no using statements). Continue reading

Posted in Libraries, Web | Tagged , | Leave a comment

Changing the Login URL from login.aspx on ASP.NET MVC with Forms Authentication

When you enable forms authentication in an ASP.NET MVC5 web application, by default, it redirects unauthenticated requests to ~/login.aspx. You can specify web.config configuration (authentication tag, forms sub-tag, loginUrl property) to change this. Continue reading

Posted in Libraries, Web | Tagged | Leave a comment

Authenticating Against Web API from ASP.NET MVC

In a previous post, we talked about setting up ASP.NET MVC and Web API to accept forms authentication. With this structure in place, your MVC front-end can make Web API calls. The question is, how do you authenticate? What cookies … Continue reading

Posted in Libraries, Web | Tagged , | Leave a comment

Adding Forms Authentication to Web API

Web API projects don’t ship with external (forms) authentication, but it’s not hard to graft them on. Using the MVC project code, we can easily add forms authentication to the Web API. Continue reading

Posted in Core .NET, Web | Tagged , | Leave a comment