Skip to content

Commit a2a2df6

Browse files
authored
Passkeys coverage (#35943)
1 parent 527cfb0 commit a2a2df6

File tree

12 files changed

+993
-17
lines changed

12 files changed

+993
-17
lines changed

.openpublishing.redirection.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,6 @@
960960
"redirect_url": "/aspnet/core/tutorials/web-api-javascript",
961961
"redirect_document_id": false
962962
},
963-
{
964-
"source_path": "aspnetcore/migration/index.md",
965-
"redirect_url": "/aspnet/core/migration/fx-to-core/",
966-
"redirect_document_id": false
967-
},
968963
{
969964
"source_path": "aspnetcore/migration/proper-to-2x/index.md",
970965
"redirect_url": "/aspnet/core/migration/fx-to-core/",

aspnetcore/migration/80-90.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
22
title: Migrate from ASP.NET Core in .NET 8 to ASP.NET Core in .NET 9
33
author: wadepickett
4-
description: Learn how to migrate an ASP.NET Core in .NET 8 to ASP.NET Core in .NET 9
4+
description: Learn how to migrate an ASP.NET Core in .NET 8 to ASP.NET Core in .NET 9.
55
ms.author: wpickett
66
ms.date: 2/11/2024
77
uid: migration/80-to-90
88
---
9-
10-
<!-- New content should be added to ~/migration/includes/aspnetcore-9/includes/{FILE}.md files. This will help prevent merge conflicts in this file. -->
11-
129
# Migrate from ASP.NET Core in .NET 8 to ASP.NET Core in .NET 9
1310

11+
<!-- New content should be added to the includes files in the '80-to-90' folder. This will help prevent merge conflicts in this file. -->
12+
1413
This article explains how to update an ASP.NET Core in .NET 8 to ASP.NET Core in .NET 9.
1514

1615
## Prerequisites

aspnetcore/migration/90-to-100.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: Migrate from ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10
3+
author: wadepickett
4+
description: Learn how to migrate an ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10.
5+
ms.author: wpickett
6+
ms.date: 8/14/2025
7+
uid: migration/90-to-100
8+
---
9+
# Migrate from ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10
10+
11+
<!-- New content should be added to the includes files in the '90-to-100' folder. This will help prevent merge conflicts in this file. -->
12+
13+
This article explains how to update an ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10.
14+
15+
## Prerequisites
16+
17+
<!-- NOTE: The prereqs INCLUDES files have are in a poor state these days. I've opened
18+
https://github.com/dotnet/AspNetCore.Docs/issues/35937 to work on them.
19+
For now, we'll use what's available.
20+
21+
I'll remove this remark before merging the passkeys PR. -->
22+
23+
# [Visual Studio](#tab/visual-studio)
24+
25+
[!INCLUDE[](~/includes/net-prereqs-vs-10-latest.md)]
26+
27+
# [Visual Studio Code](#tab/visual-studio-code)
28+
29+
[!INCLUDE[](~/includes/net-prereqs-vsc-10.0.md)]
30+
31+
---
32+
33+
## Update the .NET SDK version in `global.json`
34+
35+
If you rely on a [`global.json`](/dotnet/core/tools/global-json) file to target a specific .NET SDK version, update the `version` property to the .NET 10 SDK version that's installed. For example:
36+
37+
```diff
38+
{
39+
"sdk": {
40+
- "version": "9.0.304"
41+
+ "version": "10.0.100"
42+
}
43+
}
44+
```
45+
46+
## Update the target framework
47+
48+
Update the project file's [Target Framework Moniker (TFM)](/dotnet/standard/frameworks) to `net10.0`:
49+
50+
```diff
51+
<Project Sdk="Microsoft.NET.Sdk.Web">
52+
53+
<PropertyGroup>
54+
- <TargetFramework>net9.0</TargetFramework>
55+
+ <TargetFramework>net10.0</TargetFramework>
56+
</PropertyGroup>
57+
58+
</Project>
59+
```
60+
61+
## Update package references
62+
63+
In the project file, update each [`Microsoft.AspNetCore.*`](https://www.nuget.org/packages?q=Microsoft.AspNetCore.*), [`Microsoft.EntityFrameworkCore.*`](https://www.nuget.org/packages?q=Microsoft.EntityFrameworkCore.*), [`Microsoft.Extensions.*`](https://www.nuget.org/packages?q=Microsoft.Extensions.*), and [`System.Net.Http.Json`](https://www.nuget.org/packages/System.Net.Http.Json) package reference's `Version` attribute to 10.0.0 or later. For example:
64+
65+
```diff
66+
<ItemGroup>
67+
- <PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.0" />
68+
- <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0" />
69+
- <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.0" />
70+
- <PackageReference Include="System.Net.Http.Json" Version="9.0.0" />
71+
+ <PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="10.0.0" />
72+
+ <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.0" />
73+
+ <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="10.0.0" />
74+
+ <PackageReference Include="System.Net.Http.Json" Version="10.0.0" />
75+
</ItemGroup>
76+
```
77+
78+
## Blazor
79+
80+
[!INCLUDE[](~/migration/90-to-100/includes/blazor.md)]
81+
82+
## Breaking changes
83+
84+
Use the articles in [Breaking changes in .NET](/dotnet/core/compatibility/breaking-changes) to find breaking changes that might apply when upgrading an app to a newer version of .NET.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Complete migration coverage for Blazor apps is scheduled for September and October of 2025.
2+
3+
### Adopt passkey user authentication in an existing Blazor Web App
4+
5+
For guidance, see <xref:security/authentication/passkeys/blazor?pivots=existing-app>.

aspnetcore/migration/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Migrate an ASP.NET Core app
3+
author: wadepickett
4+
description: Learn how to migrate an ASP.NET Core app.
5+
ms.author: wpickett
6+
ms.date: 8/19/2025
7+
uid: migration/index
8+
---
9+
# Migrate an ASP.NET Core app
10+
11+
Use the guidance in this node to migrate an ASP.NET Core app.

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: wadepickett
44
description: Learn about the new features in ASP.NET Core in .NET 10.
55
ms.author: wpickett
66
ms.custom: mvc
7-
ms.date: 08/14/2025
7+
ms.date: 8/14/2025
88
uid: aspnetcore-10
99
---
1010
# What's new in ASP.NET Core in .NET 10

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,13 +601,12 @@ For more information, see <xref:blazor/host-and-deploy/webassembly/bundle-cachin
601601

602602
[Web Authentication (WebAuthn) API](https://developer.mozilla.org/docs/Web/API/Web_Authentication_API) support, known widely as *passkeys*, is a modern, phishing-resistant authentication method that improves security and user experience by leveraging public key cryptography and device-based authentication. ASP.NET Core Identity now supports passkey authentication based on WebAuthn and FIDO2 standards. This feature allows users to sign in without passwords, using secure, device-based authentication methods, such as biometrics or security keys.
603603

604-
The Preview 7 Blazor Web App project template provides out-of-the-box passkey management and login functionality:
604+
The Blazor Web App project template provides out-of-the-box passkey management and login functionality.
605605

606-
```dotnetcli
607-
dotnet new blazor -au Individual -o BlazorWebAppPasskeySample
608-
```
606+
For more information, see the following articles:
609607

610-
We plan to publish migration guidance for existing apps by Friday, August 15.
608+
* <xref:security/authentication/passkeys/index>
609+
* <xref:security/authentication/passkeys/blazor>
611610

612611
### Circuit state persistence
613612

0 commit comments

Comments
 (0)