Skip to content

Commit 792ad06

Browse files
Copilotwadepickett
andauthored
Refresh External provider authentication article (Twitter→X, VS 2022+ steps, passkeys ref) (#37040)
* Initial plan * Update External provider authentication article: Twitter→X rebrand, VS steps, passkeys reference Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/a649d8cd-9a4c-41ec-ad6c-678efd3ea1b4 Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> * Add AI usage note to external login providers guide * Remove images from email sign-in instructions Removed images from the password creation instructions. * Update index.md --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> Co-authored-by: Wade Pickett <wpickett@microsoft.com>
1 parent c954af6 commit 792ad06

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

  • aspnetcore/security/authentication/social

aspnetcore/security/authentication/social/index.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
---
22
title: Using external login providers with Identity in ASP.NET Core
3+
ai-usage: ai-assisted
34
author: wadepickett
4-
description: Create an ASP.NET Core app using Identity with external authentication providers such as Facebook, Twitter, Google, and Microsoft.
5+
description: Create an ASP.NET Core app using Identity with external authentication providers such as Facebook, X (formerly Twitter), Google, and Microsoft.
56
ms.author: wpickett
67
ms.custom: mvc, sfi-image-nochange
7-
ms.date: 07/09/2025
8+
ms.date: 04/21/2026
89
uid: security/authentication/social/index
910
---
1011
# External provider authentication in ASP.NET Core Identity
1112

12-
By [Valeriy Novytskyy](https://github.com/01binary) and [Rick Anderson](https://twitter.com/RickAndMSFT)
13+
By [Valeriy Novytskyy](https://github.com/01binary) and [Rick Anderson](https://x.com/RickAndMSFT)
1314

1415
This article explains how to build an ASP.NET Core app that enables users to sign in using OAuth 2.0 with credentials from external authentication providers.
1516

16-
[Facebook](xref:security/authentication/facebook-logins), [Twitter](xref:security/authentication/twitter-logins), [Google](xref:security/authentication/google-logins), and [Microsoft](xref:security/authentication/microsoft-logins) providers are covered in the following sections and use the starter project created in this article. Other providers are available in third-party packages such as [OpenIddict](https://documentation.openiddict.com/integrations/web-providers), [AspNet.Security.OAuth.Providers](https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers) and [AspNet.Security.OpenId.Providers](https://github.com/aspnet-contrib/AspNet.Security.OpenId.Providers).
17+
[Facebook](xref:security/authentication/facebook-logins), [X (formerly Twitter)](xref:security/authentication/twitter-logins), [Google](xref:security/authentication/google-logins), and [Microsoft](xref:security/authentication/microsoft-logins) providers are covered in the following sections and use the starter project created in this article. Other providers are available in third-party packages such as [OpenIddict](https://documentation.openiddict.com/integrations/web-providers), [AspNet.Security.OAuth.Providers](https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers) and [AspNet.Security.OpenId.Providers](https://github.com/aspnet-contrib/AspNet.Security.OpenId.Providers).
1718

1819
Enabling users to sign in with their existing credentials is convenient for the users and shifts many of the complexities of managing the sign-in process onto a third party.
1920

2021
## Create a New ASP.NET Core Project
2122

2223
# [Visual Studio](#tab/visual-studio)
2324

24-
* Select the **ASP.NET Core Web App** template. Select **OK**.
25-
* In the **Authentication type** input, select **Individual Accounts**.
25+
* Select the **ASP.NET Core Web App** template and select **Next**.
26+
* Name the project and select **Next**.
27+
* In the **Authentication type** dropdown, select **Individual Accounts** and select **Create**.
2628

2729
# [Visual Studio Code / .NET CLI](#tab/visual-studio-code+net-cli)
2830

@@ -44,7 +46,7 @@ Enabling users to sign in with their existing credentials is convenient for the
4446

4547
* The `dotnet new` command uses the `-o|--output` option to create a new Razor Pages project in the `WebApp1` folder.
4648
* `-au Individual` creates the code for Individual authentication.
47-
* `-uld` uses LocalDB, a lightweight version of SQL Server Express for Windows. Omit `-uld` to use SQLite.
49+
* `-uld` uses LocalDB, a lightweight version of SQL Server Express for Windows. Omit `-uld` to use SQLite, which is the default across all platforms.
4850

4951
For more information, see [`dotnet new <TEMPLATE>`](/dotnet/core/tools/dotnet-new).
5052

@@ -72,7 +74,7 @@ For guidance on storing the tokens assigned by each login provider, see <xref:se
7274
Use the following articles to configure login providers and the app:
7375

7476
* [Facebook](xref:security/authentication/facebook-logins) instructions
75-
* [Twitter](xref:security/authentication/twitter-logins) instructions
77+
* [X (formerly Twitter)](xref:security/authentication/twitter-logins) instructions
7678
* [Google](xref:security/authentication/google-logins) instructions
7779
* [Microsoft](xref:security/authentication/microsoft-logins) instructions
7880
* [Other provider](xref:security/authentication/otherlogins) instructions
@@ -97,7 +99,7 @@ builder.Services.AddAuthentication()
9799
})
98100
.AddTwitter(options =>
99101
{
100-
// Twitter configuration options
102+
// X (formerly Twitter) configuration options
101103
});
102104
```
103105

@@ -110,17 +112,12 @@ When you register with an external login provider, you don't have a password reg
110112
To create a password and sign in using your email that you set during the sign-in process with external providers:
111113

112114
* Select the **Hello &lt;email alias&gt;** link at the top-right corner to navigate to the **Manage** view:
113-
114-
![Web application Manage view](index/_static/pass1a.png)
115-
116115
* Select **Create**:
117-
118-
![Set your password page](index/_static/pass2a.png)
119-
120116
* Set a valid password, and you can use this credential to sign in with your email address.
121117

122118
## Additional information
123119

124120
* [Sign in with Apple Example Integration](https://github.com/martincostello/SignInWithAppleSample)
125121
* [How to customize the login buttons (`dotnet/AspNetCore.Docs` #10563)](https://github.com/dotnet/AspNetCore.Docs/issues/10563)
126122
* [Persist additional data about the user and their access and refresh tokens](xref:security/authentication/social/additional-claims)
123+
* [Passkeys (FIDO2/WebAuthn) in ASP.NET Core Identity](xref:security/authentication/passkeys/index): A passwordless alternative to social logins introduced in .NET 10.

0 commit comments

Comments
 (0)