Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with authentication, sessions, registration, and user repositories


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.

Getting ready

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.

How to do it…

  1. Create a new project based on a C#...