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
53
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
55
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
56
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.
53
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.
54
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.
56
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.
73
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.
55
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.
62
Ocelot
Ocelot
54
Ocelot
Ocelot Api Gateway
53
Ocelot
Ocelot Api Gateway
54
Ocelot
Ocelot Api Gateway
56
Ocelot
Ocelot Api Gateway
58

.NET 10.0

  • No dependencies.

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