The Auth0 Templates for .NET package allows you to quickly bootstrap a .NET application secured with Auth0. You can use the Auth0 Templates with the .NET CLI and Visual Studio.
- An Auth0 account. You can sign up for a free one right now.
- .NET Core 7.0 SDK or higher.
- (Optional) Visual Studio 2022 for Windows (ver. 17.4)
You can install the Auth0 Templates from the NuGet repository or from the source code.
⚠️ The current version of Auth0.Templates are not published on NuGet yet.
To work locally with the Auth0 Templates, i.e., using the templates coming from the source code, execute the following steps:
-
Clone this repository
-
Create a local NuGet package by running the following command in the root folder of the project:
dotnet pack
Your NuGet package will be generated in the
./bin/Debug/
folder. -
Install the templates by running the following command:
dotnet new -i ./bin/Debug/Auth0.Templates.2.0.0-alpha.nupkg
ℹ️ If you have Node.js installed on your machine, you can create and install a local NuGet package by using the following command in the root folder of the project:
npm run pack-install
That command also works for updating a currently installed package.
Currently, the following .NET templates are implemented:
- Auth0 MVC Application
- Auth0 Web API Application
- Auth0 Blazor Server Application
- Auth0 Blazor WebAssembly Application
This project is licensed under the MIT license.docs See the LICENSE file for more info.