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
67
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
70
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
72
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
75
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.
67
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.
68
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.
70
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.
71
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.
102
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
67
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
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.
69
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.
89
Ocelot
Ocelot Api Gateway
69
Ocelot
Ocelot Api Gateway
71

.NET 10.0

  • No dependencies.

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