Skip to content

Web API Template

Jean-Marc Prieur edited this page May 5, 2020 · 33 revisions

Microsoft Identity Web-2

Build the NuGet package containing the .NET Core project template:

cd ProjectTemplates
msbuild /t:restore
msbuild /t:pack

Installing the templates

cd bin
cd Debug
dotnet new -i Microsoft.Identity.Web.ProjectTemplates.0.1.0.nupkg

Use the Web API template

Microsoft identity platform Web API

mkdir webapi
cd webapi
dotnet new webapi2 --auth SingleOrg
msbuild
cd ..

AzureAD B2C B2C

mkdir webapi-b2c
cd webapi-b2c
dotnet new webapi2 --auth IndividualB2C
msbuild
cd ..

(optional) Uninstall the project templates

cd ProjectTemplates
dotnet new -u Microsoft.Identity.Web.ProjectTemplates

Getting started with Microsoft Identity Web

Token cache serialization

Web apps

Web APIs

Daemon scenario

Advanced topics

Extensibility

Credential providers

FAQ

News

Contribute

Other resources

Clone this wiki locally