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
56
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
59
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
61
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.
57
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.
58
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.
59
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.
60
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.
80
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.
58
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.
68
Ocelot
Ocelot
57
Ocelot
Ocelot Api Gateway
56
Ocelot
Ocelot Api Gateway
57
Ocelot
Ocelot Api Gateway
58
Ocelot
Ocelot Api Gateway
59
Ocelot
Ocelot Api Gateway
61

.NET 10.0

  • No dependencies.

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