diff --git a/Changelog.md b/Changelog.md index 0c17c01..746123e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,11 @@ [Readme](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/blob/main/README.md) +**2023-12-07** 3.0.0 +- Updated .NET 8 +- Fixed Graph SDK photo streaming +- Rebranding Microsoft Entra ID + **2023-11-03** 2.2.0 - Updated packages - fixed XSS security header diff --git a/README-NUGET.md b/README-NUGET.md index f0ee7b2..bf941e7 100644 --- a/README-NUGET.md +++ b/README-NUGET.md @@ -2,15 +2,15 @@ [![.NET](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/actions/workflows/dotnet.yml/badge.svg)](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/actions/workflows/dotnet.yml) [![NuGet Status](http://img.shields.io/nuget/v/Blazor.BFF.AzureAD.Template.svg?style=flat-square)](https://www.nuget.org/packages/Blazor.BFF.AzureAD.Template/) [Change log](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/blob/main/Changelog.md) -This template can be used to create a Blazor WASM application hosted in an ASP.NET Core Web app using Azure AD and Microsoft.Identity.Web to authenticate using the BFF security architecture. (server authentication) This removes the tokens from the browser and uses cookies with each HTTP request, response. The template also adds the required security headers as best it can for a Blazor application. +This template can be used to create a Blazor WASM application hosted in an ASP.NET Core Web app using Microsoft Entra ID and Microsoft.Identity.Web to authenticate using the BFF security architecture. (server authentication) This removes the tokens from the browser and uses cookies with each HTTP request, response. The template also adds the required security headers as best it can for a Blazor application. ## Features -- WASM hosted in ASP.NET Core 7 -- BFF with Azure AD using Microsoft.Identity.Web +- WASM hosted in ASP.NET Core 8 +- BFF with Microsoft Entra ID using Microsoft.Identity.Web - OAuth2 and OpenID Connect OIDC - No tokens in the browser -- Azure AD Continuous Access Evaluation CAE support +- Microsoft Entra ID Continuous Access Evaluation CAE support ## Using the template @@ -30,7 +30,7 @@ Use the `-n` or `--name` parameter to change the name of the output created. Thi ## Setup after installation -Add the Azure AD App registration settings +Add the Microsoft Entra ID App registration settings ``` { @@ -171,7 +171,7 @@ public IActionResult Get() dotnet new uninstall Blazor.BFF.AzureAD.Template ``` -## Credits, Used NuGet packages + ASP.NET Core 7.0 standard packages +## Credits, Used NuGet packages + ASP.NET Core 8.0 standard packages - NetEscapades.AspNetCore.SecurityHeaders diff --git a/README.md b/README.md index 4f4037c..86f78af 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,17 @@ [![.NET](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/actions/workflows/dotnet.yml/badge.svg)](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/actions/workflows/dotnet.yml) [![NuGet Status](http://img.shields.io/nuget/v/Blazor.BFF.AzureAD.Template.svg?style=flat-square)](https://www.nuget.org/packages/Blazor.BFF.AzureAD.Template/) [Change log](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/blob/main/Changelog.md) -This template can be used to create a Blazor WASM application hosted in an ASP.NET Core Web app using Azure AD and Microsoft.Identity.Web to authenticate using the BFF security architecture. (server authentication) This removes the tokens from the browser and uses cookies with each HTTP request, response. The template also adds the required security headers as best it can for a Blazor application. +This template can be used to create a Blazor WASM application hosted in an ASP.NET Core Web app using Microsoft Entra ID and Microsoft.Identity.Web to authenticate using the BFF security architecture. (server authentication) This removes the tokens from the browser and uses cookies with each HTTP request, response. The template also adds the required security headers as best it can for a Blazor application. -![Blazor BFF Azure AD](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/blob/main/images/blazorBFFAzureAD.png) +![Blazor BFF Microsoft Entra ID](https://github.com/damienbod/Blazor.BFF.AzureAD.Template/blob/main/images/blazorBFFAzureAD.png) ## Features -- WASM hosted in ASP.NET Core 7 -- BFF with Azure AD using Microsoft.Identity.Web +- WASM hosted in ASP.NET Core 8 +- BFF with Microsoft Entra ID using Microsoft.Identity.Web - OAuth2 and OpenID Connect OIDC - No tokens in the browser -- Azure AD Continuous Access Evaluation CAE support +- Microsoft Entra ID Continuous Access Evaluation CAE support ## Other templates @@ -38,7 +38,7 @@ Use the `-n` or `--name` parameter to change the name of the output created. Thi ## Setup after installation -Add the Azure AD App registration settings +Add the Microsoft Entra ID App registration settings ``` { @@ -191,7 +191,7 @@ nuget pack content/Blazor.BFF.AzureAD.Template.nuspec Locally built nupkg: ``` -dotnet new install Blazor.BFF.AzureAD.Template.2.2.0.nupkg +dotnet new install Blazor.BFF.AzureAD.Template.3.0.0.nupkg ``` Local folder: @@ -206,7 +206,7 @@ Where `` is the path to the folder containing .template.config. https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app -## Credits, Used NuGet packages + ASP.NET Core 7.0 standard packages +## Credits, Used NuGet packages + ASP.NET Core 8.0 standard packages - NetEscapades.AspNetCore.SecurityHeaders diff --git a/content/Blazor.BFF.AzureAD.Template.nuspec b/content/Blazor.BFF.AzureAD.Template.nuspec index fc8c071..546d608 100644 --- a/content/Blazor.BFF.AzureAD.Template.nuspec +++ b/content/Blazor.BFF.AzureAD.Template.nuspec @@ -2,7 +2,7 @@ Blazor.BFF.AzureAD.Template - 2.2.0 + 3.0.0 Blazor.BFF.AzureAD.Template LICENSE Blazor backend for frontend (BFF) template for WASM ASP.NET Core hosted @@ -15,7 +15,7 @@ false 2023 damienbod This template provides a simple Blazor template with BFF server authentication WASM hosted - Updated nuget packages, fixed security XSS block header + Updated .NET 8 packages, Microsoft Entra ID diff --git a/content/BlazorBffAzureAD/.template.config/template.json b/content/BlazorBffAzureAD/.template.config/template.json index c719eda..a9ca5ac 100644 --- a/content/BlazorBffAzureAD/.template.config/template.json +++ b/content/BlazorBffAzureAD/.template.config/template.json @@ -3,6 +3,7 @@ "classifications": [ "AspNetCore", "WASM", + "MicrosoftEntraID" "AzureAD", "OAuth2", "Web", @@ -11,7 +12,7 @@ "Solution", "Blazor" ], - "name": "ASP.NET Core Blazor BFF hosted WASM Azure AD", + "name": "ASP.NET Core Blazor BFF hosted WASM Microsoft Entra ID", "identity": "Blazor.BFF.AzureAD.Template", "shortName": "blazorbffaad", "tags": { diff --git a/content/BlazorBffAzureAD/Client/BlazorBffAzureAD.Client.csproj b/content/BlazorBffAzureAD/Client/BlazorBffAzureAD.Client.csproj index d8b1e6e..2f6d209 100644 --- a/content/BlazorBffAzureAD/Client/BlazorBffAzureAD.Client.csproj +++ b/content/BlazorBffAzureAD/Client/BlazorBffAzureAD.Client.csproj @@ -1,17 +1,17 @@  - net7.0 + net8.0 true enable enable - - - - + + + + diff --git a/content/BlazorBffAzureAD/Client/Pages/Index.razor b/content/BlazorBffAzureAD/Client/Pages/Index.razor index 77b37b0..bbb3a09 100644 --- a/content/BlazorBffAzureAD/Client/Pages/Index.razor +++ b/content/BlazorBffAzureAD/Client/Pages/Index.razor @@ -1,3 +1,3 @@ @page "/" -

Azure AD using cookies

+

Microsoft Entra ID using cookies

diff --git a/content/BlazorBffAzureAD/Client/Shared/NavMenu.razor b/content/BlazorBffAzureAD/Client/Shared/NavMenu.razor index 806c120..5392274 100644 --- a/content/BlazorBffAzureAD/Client/Shared/NavMenu.razor +++ b/content/BlazorBffAzureAD/Client/Shared/NavMenu.razor @@ -1,5 +1,5 @@