Project Templates

ASPSecurityKit’s source packages are installed using the ASPSecurityKit.Tools usually in your ASP.NET Empty template based projects (though the Essential package can be installed in already developed project). A form of source packages is also available as NuGet project templates that can be installed using the dotnet new command:

dotnet new -i ASPSecurityKit.Templates

The package consists of three templates:

1. API

The short name of the template is askapi. This is how you can create a project – let’s call it SuperCRM – using the web API template in the ‘my projects’ folder:

dotnet new askapi -n SuperCRM -o "D:\My Projects\SuperCRM"

Note

If you see an error message "The post action ac1156f7-bb77-4db8-b28f-24eebcca1e54 is not supported." after 'dotnet restore' succeeds, just ignore it. As of this writing, we see this error message with .NET 6 (preview); it's incorrectly processing the Display Manual Instructions action.

You can now open the project in Visual Studio from D:\My Projects\SuperCRM\SuperCRM.csproj.

Tip

Learn how to build a simple multi-tenant CRM RESTful API service using this template from scratch.

What do I get with the API template?

  1. A reference to ASPSecurityKit.NetCore NuGet package. This is the ASPSecurityKit (ASK) security framework. It provides the Zero Trust based security pipeline that subjects every incoming request into your API web app to a series of identity and access checks such as cross-site scripting (XSS), authentication (variety of schemes such as HMAC, cookie), multi-factor auth, IP-firewall, user verification, activity-based data-aware authorization (ADA), suspension.

  2. All components from the Essential package including data access (security data models, repositories, EF migrations), dependency injection, authorization components and other useful types.

  3. Some core components from the Starter package including Route or Body Model Binding, response utilities.

Get started with this template.

2. MVC

The short name of the template is askmvc. This is how you can create a project – let’s call it SuperCRM – using the MVC template in the ‘my projects’ folder:

dotnet new askmvc -n SuperCRM -o "D:\My Projects\SuperCRM"

Note

If you see an error message "The post action ac1156f7-bb77-4db8-b28f-24eebcca1e54 is not supported." after 'dotnet restore' succeeds, just ignore it. As of this writing, we see this error message with .NET 6 (preview); it's incorrectly processing the Display Manual Instructions action.

You can now open the project in Visual Studio from D:\My Projects\SuperCRM\SuperCRM.csproj.

Tip

Learn how to build a simple multi-tenant CRM web application using this template from scratch.

What do I get with the MVC template?

  1. A reference to ASPSecurityKit.NetCore NuGet package. This is the ASPSecurityKit (ASK) security framework. It provides the Zero Trust based security pipeline that subjects every incoming request into your MVC web app to a series of identity and access checks such as cross-site scripting (XSS), authentication (variety of schemes such as HMAC, cookie), multi-factor auth, IP-firewall, user verification, activity-based data-aware authorization (ADA), suspension.

  2. All components from the Essential package including data access (security data models, repositories, EF migrations), dependency injection, authorization components and other useful types.

  3. Some core components from the Starter package including response utilities.

Get started with this template.

3. ServiceStack

The short name of the template is askss. This is how you can create a project – let’s call it SuperCRM – using the ServiceStack template in the ‘my projects’ folder:

dotnet new askss -n SuperCRM -o "D:\My Projects\SuperCRM"

Note

If you see an error message "The post action ac1156f7-bb77-4db8-b28f-24eebcca1e54 is not supported." after 'dotnet restore' succeeds, just ignore it. As of this writing, we see this error message with .NET 6 (preview); it's incorrectly processing the Display Manual Instructions action.

You can now open the project in Visual Studio from D:\My Projects\SuperCRM\SuperCRM.csproj.

Tip

Learn how to build a simple multi-tenant CRM RESTful API service using this template from scratch.

What do I get with the ServiceStack template?

  1. A reference to ASPSecurityKit.ServiceStack NuGet package. This is the ASPSecurityKit (ASK) security framework. It provides the Zero Trust based security pipeline that subjects every incoming request into your ServiceStack web app to a series of identity and access checks such as cross-site scripting (XSS), authentication (variety of schemes such as HMAC, cookie), multi-factor auth, IP-firewall, user verification, activity-based data-aware authorization (ADA), suspension.

  2. All components from the Essential package including data access (security data models, repositories, EF migrations), dependency injection, authorization components and other useful types.

  3. Some core components from the Starter package including Route or Body Model Binding, response utilities.

Get started with this template.