# ServiceStack common Use Cases

The repository contains the list of projects with common use cases of [ServiceStack](http://www.servicestack.net).

  - [CustomAuthentication](https://github.com/ServiceStack/ServiceStack.UseCases/tree/master/CustomAuthentication) demonstrates how to create a custom [AuthUserSession](https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack.ServiceInterface/Auth/AuthUserSession.cs) and how to create your own [AuthProvider](https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack.ServiceInterface/Auth/AuthProvider.cs). The project also shows couple ways how to invoke authentication service using Ajax request with [jQuery](http://jquery.com/) or using [JsonServiceClient](https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack.Common/ServiceClient.Web/JsonServiceClient.cs) together with ASP.NET Form. 
  - [CustomAuthenticationMvc](https://github.com/ServiceStack/ServiceStack.UseCases/tree/master/CustomAuthenticationMvc) is a project based on MVC4 default template. Shows how to use [ServiceStack Authentication](https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization) together with MVC4 controllers. How to invoke services which require authentication and shows how to use [ServiceStack Session](https://github.com/ServiceStack/ServiceStack/wiki/Sessions) to store variables.
  - [NodeStackProxy](https://github.com/ServiceStack/ServiceStack.UseCases/tree/master/NodeStackProxy) demonstrates how to use [Node.js](http://nodejs.org/) with self-hosted ServiceStack. Contains scripts for Windows & Linux. 
