-
Notifications
You must be signed in to change notification settings - Fork 219
Build and Test
-
Navigate to the main page for Microsoft Identity Web.
-
From the GitHub UI, click clone or download, and go to a dev command line and run
git clone https://github.com/AzureAD/microsoft-identity-web.git
the project into a local folder.
-
Open and build in Visual Studio 2019
-
Alternatively, build a dev command line with
dotnet build MicrosoftIdentityWeb.sln
or just
dotnet build
You won't be able to run the Integration test because they require access to a Microsoft KeyVault which is locked down. These tests run daily as part of our Azure DevOps pipelines.
To run the unit tests from the assembly Microsoft.Identity.Web.Test. For this:
cd tests\Microsoft.Identity.Web.Test
dotnet test
From VS or from the command line. If you wish to control the versioning, use the p:ClientSemVer
property
dotnet pack -p:ClientSemVer=0.1.7-preview
If you executed the command above, you'll find the NuGet packages generated under
- src\Microsoft.Identity.Web\bin\Debug\Microsoft.Identity.Web.0.1.7-preview.nupkg
- src\Microsoft.Identity.Web.UI\bin\Debug\Microsoft.Identity.Web.UI.0.1.7-preview.nupkg
- ProjectTemplates\bin\Debug\Microsoft.Identity.Web.ProjectTemplates.0.x.y.nupkg
The symbols are also generated:
- src\Microsoft.Identity.Web\bin\Debug\Microsoft.Identity.Web.0.1.7-preview.snupkg
- src\Microsoft.Identity.Web.UI\bin\Debug\Microsoft.Identity.Web.UI.0.1.7-preview.snupkg
The dotnet core project templates used to create Web apps and web APIs leveraging the Microsoft identity platform are generated by the dotnet pack
command above
If you only want to generate these:
cd ProjectTemplates
dotnet pack
Optionally install the project templates:
cd ProjectTemplates\bin\debug
dotnet new -i Microsoft.Identity.Web.ProjectTemplates.0.x.y.nupkg
If, later, you want to uninstall them:
cd ProjectTemplates\bin\debug
dotnet new -u Microsoft.Identity.Web.ProjectTemplates
Note the subtlety: to uninstall the project templates, you don't provide the full name of the file, but only the name without the version and the extension
- Home
- Why use Microsoft Identity Web?
- Web apps
- Web APIs
- Using certificates
- Minimal support for .NET FW Classic
- Logging
- Azure AD B2C limitations
- Samples
- Web apps
- Web app samples
- Web app template
- Call an API from a web app
- Managing incremental consent and conditional access
- Web app troubleshooting
- Deploy to App Services Linux containers or with proxies
- SameSite cookies
- Hybrid SPA
- Web APIs
- Web API samples
- Web API template
- Call an API from a web API
- Token Decryption
- Web API troubleshooting
- web API protected by ACLs instead of app roles
- gRPC apps
- Azure Functions
- Long running processes in web APIs
- Authorization policies
- Generic API
- Customization
- Logging
- Calling graph with specific scopes/tenant
- Multiple Authentication Schemes
- Utility classes
- Setting FIC+MSI
- Mixing web app and web API
- Deploying to Azure App Services
- Azure AD B2C issuer claim support
- Performance
- specify Microsoft Graph scopes and app-permissions
- Integrate with Azure App Services authentication
- Ajax calls and incremental consent and conditional access
- Back channel proxys
- Client capabilities