Microsoft.AspNetCore.Authentication.MicrosoftAccount 10.0.1

Prefix Reserved
dotnet add package Microsoft.AspNetCore.Authentication.MicrosoftAccount --version 10.0.1
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount -Version 10.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="10.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="10.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.Authentication.MicrosoftAccount --version 10.0.1
                    
#r "nuget: Microsoft.AspNetCore.Authentication.MicrosoftAccount, 10.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.AspNetCore.Authentication.MicrosoftAccount@10.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.Authentication.MicrosoftAccount&version=10.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.MicrosoftAccount&version=10.0.1
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (88)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Authentication.MicrosoftAccount:

Package Downloads
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.

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.

Abp.AspNetZeroCore.Web

Package Description

NanoCore

The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar.

FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

GitHub repositories (27)

Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Authentication.MicrosoftAccount:

Repository Stars
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
OrchardCMS/OrchardCore
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
davidfowl/TodoApp
Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication
dotnetcore/osharp
OSharp是一个基于.Net6.0的快速开发框架,框架对 AspNetCore 的配置、依赖注入、日志、缓存、实体框架、Mvc(WebApi)、身份认证、功能权限、数据权限等模块进行更高一级的自动化封装,并规范了一套业务实现的代码结构与操作流程,使 .Net 框架更易于应用到实际项目开发中。
Squidex/squidex
Headless CMS and Content Managment Hub
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 20, React 19, Vue 3.5, BFF with YARP, NextJs 16, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ...
enkodellc/blazorboilerplate
Blazor Boilerplate / Starter Template with MudBlazor
servicetitan/Stl.Fusion
Build real-time apps (Blazor included) with less than 1% of extra code responsible for real-time updates. Host 10-1000x faster APIs relying on transparent and nearly 100% consistent caching. We call it DREAM, or Distributed REActive Memoization, and it's here to turn real-time on!
ivaylokenov/MyTested.AspNetCore.Mvc
Fluent testing library for ASP.NET Core MVC.
xamarin/Essentials
Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
cloudscribe/cloudscribe
ASP.NET Core multi-tenant web application foundation with management for sites, users, roles, claims and more
abpframework/abp-samples
Sample solutions built with the ABP Framework
neozhu/CleanArchitectureWithBlazorServer
This repository is designed to create an enterprise Blazor Server application that follows the principles of Clean Architecture and implements Blazor Clean Architecture best practices for scalability, maintainability, and testability.
mixcore/mix.core
🚀 A future-proof enterprise web CMS supporting both headless and decoupled approaches. Build any type of app with customizable APIs on ASP.NET Core/.NET Core. Completely open-source and designed for flexibility.
gaseous-project/gaseous-server
A game ROM manager, with a built in web based emulator using multiple sources to identify and provide metadata
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
bhrugen/Bulky_MVC
servicetitan/Stl.Fusion.Samples
A collection of samples for Fusion library: https://github.com/servicetitan/Stl.Fusion
vicente-da-silva/dcemv
Open Source EMV Payments Stack
Version Downloads Last Updated
10.0.1 11,480 12/9/2025
10.0.0 42,003 11/11/2025
10.0.0-rc.2.25502.107 3,345 10/14/2025
10.0.0-rc.1.25451.107 4,362 9/9/2025
10.0.0-preview.7.25380.108 508 8/12/2025
10.0.0-preview.6.25358.103 444 7/15/2025
10.0.0-preview.5.25277.114 517 6/6/2025
10.0.0-preview.4.25258.110 559 5/12/2025
10.0.0-preview.3.25172.1 620 4/10/2025
10.0.0-preview.2.25164.1 74,561 3/18/2025
10.0.0-preview.1.25120.3 122,212 2/25/2025
9.0.11 18,407 11/11/2025
9.0.10 49,198 10/14/2025
9.0.9 52,538 9/9/2025
9.0.8 72,315 8/5/2025
9.0.7 39,819 7/8/2025
9.0.6 58,967 6/10/2025
9.0.5 71,756 5/13/2025
9.0.4 121,641 4/8/2025
9.0.3 79,697 3/11/2025
9.0.2 85,622 2/11/2025
9.0.1 173,154 1/14/2025
9.0.0 240,215 11/12/2024
9.0.0-rc.2.24474.3 5,170 10/8/2024
9.0.0-rc.1.24452.1 1,726 9/10/2024
9.0.0-preview.7.24406.2 3,226 8/13/2024
9.0.0-preview.6.24328.4 102,617 7/9/2024
9.0.0-preview.5.24306.11 621 6/11/2024
9.0.0-preview.4.24267.6 544 5/21/2024
9.0.0-preview.3.24172.13 1,254 4/11/2024
9.0.0-preview.2.24128.4 677 3/12/2024
9.0.0-preview.1.24081.5 1,897 2/13/2024
8.0.22 6,374 11/11/2025
8.0.21 15,851 10/14/2025
8.0.20 26,058 9/9/2025
8.0.19 28,854 8/4/2025
8.0.18 17,681 7/8/2025
8.0.17 37,397 6/10/2025
8.0.16 31,315 5/13/2025
8.0.15 110,087 4/8/2025
8.0.14 61,140 3/11/2025
8.0.13 41,779 2/11/2025
8.0.12 73,208 1/14/2025
8.0.11 271,316 11/12/2024
8.0.10 302,965 10/8/2024
8.0.8 418,799 8/13/2024
8.0.7 181,535 7/9/2024
8.0.6 244,799 5/28/2024
8.0.5 92,495 5/14/2024
8.0.4 231,367 4/9/2024
8.0.3 112,881 3/12/2024
8.0.2 167,641 2/13/2024
8.0.1 147,717 1/9/2024
8.0.0 663,952 11/14/2023
8.0.0-rc.2.23480.2 9,531 10/10/2023
8.0.0-rc.1.23421.29 2,875 9/12/2023
8.0.0-preview.7.23375.9 2,624 8/8/2023
8.0.0-preview.6.23329.11 1,369 7/11/2023
8.0.0-preview.5.23302.2 1,145 6/13/2023
8.0.0-preview.4.23260.4 262,434 5/16/2023
8.0.0-preview.3.23177.8 1,848 4/11/2023
8.0.0-preview.2.23153.2 91,889 3/14/2023
8.0.0-preview.1.23112.2 655 2/21/2023
7.0.20 29,996 5/28/2024
7.0.19 6,003 5/14/2024
7.0.18 13,709 4/9/2024
7.0.17 15,515 3/12/2024
7.0.16 12,076 2/13/2024
7.0.15 17,371 1/9/2024
7.0.14 34,827 11/14/2023
7.0.13 53,837 10/24/2023
7.0.12 33,380 10/10/2023
7.0.11 79,935 9/12/2023
7.0.10 122,061 8/8/2023
7.0.9 99,471 7/11/2023
7.0.8 85,054 6/22/2023
7.0.7 22,482 6/13/2023
7.0.5 280,570 4/11/2023
7.0.4 77,937 3/14/2023
7.0.3 73,343 2/14/2023
7.0.2 170,929 1/10/2023
7.0.1 36,473 12/13/2022
7.0.0 258,628 11/7/2022
7.0.0-rc.2.22476.2 2,210 10/11/2022
7.0.0-rc.1.22427.2 67,271 9/14/2022
7.0.0-preview.7.22376.6 899 8/9/2022
7.0.0-preview.6.22330.3 693 7/12/2022
7.0.0-preview.5.22303.8 944 6/14/2022
7.0.0-preview.4.22251.1 952 5/10/2022
7.0.0-preview.3.22178.4 851 4/13/2022
7.0.0-preview.2.22153.2 612 3/14/2022
7.0.0-preview.1.22109.13 633 2/17/2022
6.0.36 20,125 11/12/2024
6.0.35 31,486 10/8/2024
6.0.33 17,524 8/13/2024
6.0.32 20,768 7/9/2024
6.0.31 13,903 5/28/2024
6.0.30 5,361 5/14/2024
6.0.29 11,238 4/9/2024
6.0.28 13,205 3/12/2024
6.0.27 8,166 2/13/2024
6.0.26 35,350 1/9/2024
6.0.25 51,526 11/14/2023
6.0.24 72,499 10/24/2023
6.0.23 13,979 10/10/2023
6.0.22 25,768 9/12/2023
6.0.21 58,701 8/8/2023
6.0.20 43,277 7/11/2023
6.0.19 23,164 6/22/2023
6.0.18 19,661 6/13/2023
6.0.16 125,320 4/11/2023
6.0.15 44,714 3/14/2023
6.0.14 53,024 2/14/2023
6.0.13 152,537 1/10/2023
6.0.12 58,283 12/13/2022
6.0.11 80,005 11/7/2022
6.0.10 258,329 10/11/2022
6.0.9 124,789 9/13/2022
6.0.8 207,124 8/9/2022
6.0.7 360,871 7/12/2022
6.0.6 143,186 6/14/2022
6.0.5 1,182,861 5/10/2022
6.0.4 321,222 4/11/2022
6.0.3 206,860 3/8/2022
6.0.2 146,759 2/8/2022
6.0.1 600,387 12/14/2021
6.0.0 481,765 11/8/2021
6.0.0-rc.2.21480.10 2,452 10/12/2021
6.0.0-rc.1.21452.15 3,669 9/14/2021
6.0.0-preview.7.21378.6 1,630 8/10/2021
6.0.0-preview.6.21355.2 1,049 7/14/2021
6.0.0-preview.5.21301.17 1,183 6/15/2021
6.0.0-preview.4.21253.5 968 5/24/2021
6.0.0-preview.3.21201.13 946 4/8/2021
6.0.0-preview.2.21154.6 938 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 1,989 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 126,605 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 7,253 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 22,437 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 16,757 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 58,847 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 32,274 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 81,710 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 111,176 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 84,340 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 95,591 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 120,915 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 81,614 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 128,807 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 157,250 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 44,303 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 31,927 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 70,110 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 403,214 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 2,339 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 2,018 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 1,072 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 962 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 1,097 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 886 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 937 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 931 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 949 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 925 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 13,237 12/13/2022
3.1.31 4,425 11/8/2022
3.1.30 3,197 10/11/2022
3.1.29 5,767 9/13/2022
3.1.28 3,607 8/9/2022
3.1.27 2,529 7/12/2022
3.1.26 5,279 6/14/2022
3.1.25 18,230 5/10/2022
3.1.24 4,555 4/11/2022
3.1.23 15,679 3/8/2022
3.1.22 28,988 12/14/2021
3.1.21 21,865 11/7/2021
3.1.20 28,653 10/11/2021
3.1.19 24,497 9/14/2021
3.1.18 22,165 8/10/2021
3.1.17 34,922 7/13/2021
3.1.16 28,722 6/8/2021
3.1.15 14,111 5/11/2021
3.1.14 25,179 4/6/2021
3.1.13 63,309 3/9/2021
3.1.12 21,385 2/9/2021
3.1.11 136,884 1/12/2021
3.1.10 95,758 11/9/2020
3.1.9 110,180 10/13/2020
3.1.8 176,721 9/8/2020
3.1.7 70,273 8/11/2020
3.1.6 62,230 7/14/2020
3.1.5 209,289 6/9/2020
3.1.4 116,171 5/12/2020
3.1.3 170,411 3/24/2020
3.1.2 114,426 2/18/2020
3.1.1 77,705 1/14/2020
3.1.0 91,082 12/3/2019
3.1.0-preview3.19555.2 934 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 946 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 983 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 4,865 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 3,233 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 628,093 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,872 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 2,048 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 2,604 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 3,212 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,863 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 2,378 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,963 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 2,025 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 1,911 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 2,025 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 634 1/14/2025
2.2.0 14,271,729 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 64,210 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,530 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 3,639 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.2 13,627,876 8/21/2018
2.1.1 12,113,415 6/18/2018
2.1.0 3,497,237 5/29/2018
2.1.0-rc1-final 20,171 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 20,522 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 28,053 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 3,882,937 5/7/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 3,520,347 3/13/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.1 5,431,423 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,525,258 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,468 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 19,114 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 8,878 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 67,172 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 74,453 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 90,034 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 4,032 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 5,081 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 3,819 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 5,934 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 8,654 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 6,284 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 139,124 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 4,128 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.