https://github.com/damienbod/aspnetcoretenantselect
Switch tenants in an ASP.NET Core app using Azure AD with multi tenants
https://github.com/damienbod/aspnetcoretenantselect
app-registration aspnetcore authn authz azuread enterprise-application oauth2 oidc openid-connect
Last synced: 3 days ago
JSON representation
Switch tenants in an ASP.NET Core app using Azure AD with multi tenants
- Host: GitHub
- URL: https://github.com/damienbod/aspnetcoretenantselect
- Owner: damienbod
- License: mit
- Created: 2022-10-25T11:23:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T12:18:46.000Z (4 months ago)
- Last Synced: 2025-04-16T04:44:40.774Z (6 days ago)
- Topics: app-registration, aspnetcore, authn, authz, azuread, enterprise-application, oauth2, oidc, openid-connect
- Language: C#
- Homepage: https://damienbod.com/2022/10/31/switch-tenants-in-an-asp-net-core-app-using-azure-ad-with-multi-tenants/
- Size: 1.7 MB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ASP.NET Core Multi Tenant Select
[](https://github.com/damienbod/AspNetCoreTenantSelect/actions/workflows/dotnet.yml)
[Switch tenants in an ASP.NET Core app using Microsoft Entra ID with multi tenants](https://damienbod.com/2022/10/31/switch-tenants-in-an-asp-net-core-app-using-azure-ad-with-multi-tenants/)
[Microsoft Entra ID Multi tenant Azure App registration consent](https://damienbod.com/2023/01/02/azure-ad-multi-tenant-azure-app-registration-consent/)
## Migrations
```
Add-Migration "init"Update-Database
```## History
- 2025-01-01 Update packages
- 2024-11-15 .NET 9
- 2024-10-26 Updated packages, code clean up
- 2024-03-24 .NET 8
- 2023-09-23 Updated packages, fixed security headers
- 2023-09-23 Updated packages
- 2023-04-28 Updated packages
- 2023-02-24 Updated packages
- 2022-12-23 Updated to .NET 7## Links
https://learn.microsoft.com/en-us/azure/active-directory/develop/id-tokens
https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/multi-tenant-user-management-introduction
https://github.com/AzureAD/microsoft-identity-web
https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/add-application-portal