ServiceStack has a wide range of options when it comes to authentication. These options have a common structure that makes them pluggable into a set of common services, models, and interfaces. In this recipe, we will cover the main components of authentication with ServiceStack and work with the credential-authentication example.
If you are using a non-express version of Visual Studio, including the free Visual Studio 2013 Community Edition, you can start this recipe using ServiceStackVS and create a new project based on any of the C# ServiceStack templates available. If you are using an express version of Visual Studio or one that does not support extensions, please follow the Creating a ServiceStack solution with Visual Studio and NuGet section in Appendix A, Getting Started, and start from the second instruction in the How to do it... section.