Microsoft.AspNetCore.Authentication.MicrosoftAccount 10.0.0

About

Microsoft.AspNetCore.Authentication.MicrosoftAccount provides ASP.NET Core middleware that enables applications to support the Microsoft Account authentication workflow.

How to Use

To use Microsoft.AspNetCore.Authentication.MicrosoftAccount, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Authentication.MicrosoftAccount

Configuration

  1. Refer to the guide in the official documentation here to create the app in Microsoft Developer Portal
  2. Follow the steps in the official documentation here to store the Microsoft client ID and secret
  3. Add the Authentication service to your app's Program.cs:
    var builder = WebApplication.CreateBuilder(args);
    
    builder.Services.AddAuthentication().AddMicrosoftAccount(microsoftOptions =>
    {
        microsoftOptions.ClientId = builder.Configuration["Authentication:Microsoft:ClientId"];
        microsoftOptions.ClientSecret = builder.Configuration["Authentication:Microsoft:ClientSecret"];
    });
    

Main Types

The main types provided by this package are:

  • MicrosoftAccountOptions: Represents the options for configuring Microsoft Account authentication
  • MicrosoftAccountHandler: The authentication handler responsible for processing Microsoft Account authentication requests and generating the appropriate authentication ticket

Additional Documentation

For additional documentation and examples, refer to the official documentation on Microsoft Account login setup in ASP.NET Core.

Feedback & Contributing

Microsoft.AspNetCore.Authentication.MicrosoftAccount is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.AspNetCore.Authentication.MicrosoftAccount.

Packages Downloads
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
50
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
52
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
50
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
51
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
52
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
63
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
50
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
57
Ocelot
Ocelot
50
Ocelot
Ocelot Api Gateway
50
Ocelot
Ocelot Api Gateway
51
Ocelot
Ocelot Api Gateway
52
Ocelot
Ocelot Api Gateway
54

.NET 10.0

  • No dependencies.

Version Downloads Last updated
10.0.0 31 11/12/2025
10.0.0-rc.2.25502.107 22 10/15/2025
10.0.0-rc.1.25451.107 34 09/11/2025
10.0.0-preview.7.25380.108 26 08/14/2025
10.0.0-preview.6.25358.103 21 07/17/2025
10.0.0-preview.5.25277.114 25 06/08/2025
10.0.0-preview.4.25258.110 33 05/16/2025
10.0.0-preview.3.25172.1 36 04/13/2025
10.0.0-preview.2.25164.1 33 03/22/2025
10.0.0-preview.1.25120.3 38 02/27/2025
9.0.11 13 11/13/2025
9.0.10 18 10/16/2025
9.0.9 19 09/11/2025
9.0.8 22 08/07/2025
9.0.7 21 07/10/2025
9.0.6 24 06/12/2025
9.0.5 28 05/17/2025
9.0.4 31 04/09/2025
9.0.3 29 03/15/2025
9.0.2 36 02/15/2025
9.0.1 32 02/02/2025
9.0.0 36 12/04/2024
9.0.0-rc.2.24474.3 35 11/14/2024
9.0.0-rc.1.24452.1 35 12/03/2024
9.0.0-preview.7.24406.2 39 11/14/2024
9.0.0-preview.6.24328.4 37 11/14/2024
9.0.0-preview.5.24306.11 52 11/14/2024
9.0.0-preview.4.24267.6 46 05/29/2024
9.0.0-preview.3.24172.13 37 11/14/2024
9.0.0-preview.2.24128.4 45 04/24/2024
9.0.0-preview.1.24081.5 40 12/02/2024
8.0.22 25 11/13/2025
8.0.21 15 10/16/2025
8.0.20 17 09/11/2025
8.0.19 21 08/07/2025
8.0.18 22 07/10/2025
8.0.17 26 06/12/2025
8.0.16 30 05/17/2025
8.0.15 37 04/09/2025
8.0.14 29 03/15/2025
8.0.13 36 02/27/2025
8.0.12 38 02/02/2025
8.0.11 38 12/02/2024
8.0.10 41 11/14/2024
8.0.8 37 11/14/2024
8.0.7 36 12/02/2024
8.0.6 35 11/14/2024
8.0.5 41 05/19/2024
8.0.4 34 11/14/2024
8.0.3 38 11/14/2024
8.0.2 36 11/14/2024
8.0.1 44 05/14/2024
8.0.0 45 05/02/2024
8.0.0-rc.2.23480.2 35 11/14/2024
8.0.0-rc.1.23421.29 36 11/14/2024
8.0.0-preview.7.23375.9 44 05/18/2024
8.0.0-preview.6.23329.11 43 11/14/2024
8.0.0-preview.5.23302.2 31 11/14/2024
8.0.0-preview.4.23260.4 37 11/14/2024
8.0.0-preview.3.23177.8 31 11/14/2024
8.0.0-preview.2.23153.2 34 11/14/2024
8.0.0-preview.1.23112.2 32 11/14/2024
7.0.20 35 12/12/2024
7.0.19 42 05/19/2024
7.0.18 42 11/14/2024
7.0.17 35 11/14/2024
7.0.16 32 11/14/2024
7.0.15 44 05/14/2024
7.0.14 31 11/14/2024
7.0.13 42 05/14/2024
7.0.12 40 05/14/2024
7.0.11 40 11/14/2024
7.0.10 33 11/14/2024
7.0.9 45 11/14/2024
7.0.8 38 12/03/2024
7.0.7 32 12/11/2024
7.0.5 35 11/14/2024
7.0.4 33 11/14/2024
7.0.3 39 05/14/2024
7.0.2 37 05/14/2024
7.0.1 40 12/13/2024
7.0.0 39 11/14/2024
7.0.0-rc.2.22476.2 33 11/14/2024
7.0.0-rc.1.22427.2 34 11/14/2024
7.0.0-preview.7.22376.6 37 05/14/2024
7.0.0-preview.6.22330.3 42 05/14/2024
7.0.0-preview.5.22303.8 36 11/14/2024
7.0.0-preview.4.22251.1 53 05/19/2024
7.0.0-preview.3.22178.4 33 11/14/2024
7.0.0-preview.2.22153.2 40 11/14/2024
7.0.0-preview.1.22109.13 34 11/14/2024
6.0.36 35 11/14/2024
6.0.35 44 11/14/2024
6.0.33 35 11/14/2024
6.0.32 42 11/14/2024
6.0.31 42 11/14/2024
6.0.30 51 05/19/2024
6.0.29 40 11/14/2024
6.0.28 43 11/14/2024
6.0.27 49 11/14/2024
6.0.26 38 11/14/2024
6.0.25 40 11/04/2024
6.0.24 37 11/14/2024
6.0.23 43 05/14/2024
6.0.22 58 11/14/2024
6.0.21 42 11/14/2024
6.0.20 42 11/14/2024
6.0.19 38 12/13/2024
6.0.18 40 11/14/2024
6.0.16 42 11/14/2024
6.0.15 41 11/14/2024
6.0.14 43 11/14/2024
6.0.13 41 11/14/2024
6.0.12 37 11/14/2024
6.0.11 39 05/14/2024
6.0.10 38 11/14/2024
6.0.9 30 11/14/2024
6.0.8 40 11/14/2024
6.0.7 33 11/14/2024
6.0.6 52 11/14/2024
6.0.5 32 11/14/2024
6.0.4 37 11/14/2024
6.0.3 45 05/14/2024
6.0.2 45 05/19/2024
6.0.1 44 05/14/2024
6.0.0 41 11/05/2024
6.0.0-rc.2.21480.10 47 11/14/2024
6.0.0-rc.1.21452.15 39 11/14/2024
6.0.0-preview.7.21378.6 45 05/14/2024
6.0.0-preview.6.21355.2 44 05/14/2024
6.0.0-preview.5.21301.17 49 05/20/2024
6.0.0-preview.4.21253.5 49 05/14/2024
6.0.0-preview.3.21201.13 47 11/14/2024
6.0.0-preview.2.21154.6 61 11/14/2024
6.0.0-preview.1.21103.6 37 11/14/2024
5.0.17 34 11/14/2024
5.0.16 40 11/14/2024
5.0.15 35 05/14/2024
5.0.14 43 05/14/2024
5.0.13 51 11/14/2024
5.0.12 38 11/14/2024
5.0.11 30 11/14/2024
5.0.10 31 11/14/2024
5.0.9 31 11/14/2024
5.0.8 35 11/14/2024
5.0.7 41 05/19/2024
5.0.6 38 11/14/2024
5.0.5 35 11/14/2024
5.0.4 32 11/14/2024
5.0.3 34 11/14/2024
5.0.2 36 11/14/2024
5.0.1 34 11/14/2024
5.0.0 29 11/14/2024
5.0.0-rc.2.20475.17 31 11/14/2024
5.0.0-rc.1.20451.17 37 11/14/2024
5.0.0-preview.8.20414.8 38 11/14/2024
5.0.0-preview.7.20365.19 50 11/14/2024
5.0.0-preview.6.20312.15 31 11/14/2024
5.0.0-preview.5.20279.2 35 11/14/2024
5.0.0-preview.4.20257.10 33 11/14/2024
5.0.0-preview.3.20215.14 37 05/26/2024
5.0.0-preview.2.20167.3 51 11/14/2024
5.0.0-preview.1.20124.5 37 05/14/2024
3.1.32 33 11/14/2024
3.1.31 43 05/14/2024
3.1.30 34 11/14/2024
3.1.29 39 11/14/2024
3.1.28 34 11/14/2024
3.1.27 48 05/14/2024
3.1.26 38 05/14/2024
3.1.25 30 11/14/2024
3.1.24 37 12/10/2024
3.1.23 35 11/03/2024
3.1.22 39 11/14/2024
3.1.21 38 11/14/2024
3.1.20 37 11/14/2024
3.1.19 36 11/14/2024
3.1.18 34 11/14/2024
3.1.17 45 05/14/2024
3.1.16 35 11/14/2024
3.1.15 37 11/14/2024
3.1.14 41 05/14/2024
3.1.13 35 11/14/2024
3.1.12 45 11/14/2024
3.1.11 41 05/14/2024
3.1.10 52 11/04/2024
3.1.9 37 11/14/2024
3.1.8 32 11/14/2024
3.1.7 42 11/14/2024
3.1.6 41 05/30/2024
3.1.5 41 05/14/2024
3.1.4 38 11/14/2024
3.1.3 42 11/14/2024
3.1.2 35 11/14/2024
3.1.1 37 11/16/2024
3.1.0 40 11/14/2024
3.1.0-preview3.19555.2 44 05/14/2024
3.1.0-preview2.19528.8 35 12/10/2024
3.1.0-preview1.19508.20 36 11/14/2024
3.0.3 32 11/14/2024
3.0.2 35 11/14/2024
3.0.0 33 12/10/2024
3.0.0-rc1.19457.4 48 05/14/2024
3.0.0-preview9.19424.4 38 11/14/2024
3.0.0-preview8.19405.7 38 12/05/2024
3.0.0-preview7.19365.7 37 11/14/2024
3.0.0-preview6.19307.2 40 11/14/2024
3.0.0-preview5-19227-01 45 12/05/2024
3.0.0-preview4-19216-03 51 05/19/2024
3.0.0-preview3-19153-02 38 12/12/2024
3.0.0-preview-19075-0444 47 11/14/2024
3.0.0-preview-18579-0056 39 11/14/2024
2.3.0 38 02/02/2025
2.2.0 43 08/17/2023
2.2.0-preview3-35497 42 05/14/2024
2.2.0-preview2-35157 42 05/14/2024
2.2.0-preview1-35029 43 05/14/2024
2.1.2 34 11/14/2024
2.1.1 34 11/14/2024
2.1.0 31 11/14/2024
2.1.0-rc1-final 39 11/14/2024
2.1.0-preview2-final 35 11/14/2024
2.1.0-preview1-final 56 05/14/2024
2.0.4 43 05/14/2024
2.0.3 40 11/09/2024
2.0.1 30 11/14/2024
2.0.0 42 05/27/2024
2.0.0-preview2-final 41 11/14/2024
2.0.0-preview1-final 38 11/14/2024
1.1.3 45 05/23/2024
1.1.2 47 05/14/2024
1.1.1 39 05/14/2024
1.1.0 38 11/14/2024
1.1.0-preview1-final 43 11/14/2024
1.0.5 40 11/14/2024
1.0.4 37 11/14/2024
1.0.3 43 11/14/2024
1.0.2 41 11/14/2024
1.0.1 45 04/29/2024
1.0.0 41 05/14/2024
1.0.0-rc2-final 32 11/14/2024