Microsoft.AspNetCore.Authentication.MicrosoftAccount 10.0.0-preview.3.25172.1

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Authentication.MicrosoftAccount.
dotnet add package Microsoft.AspNetCore.Authentication.MicrosoftAccount --version 10.0.0-preview.3.25172.1
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount -Version 10.0.0-preview.3.25172.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.0-preview.3.25172.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.0-preview.3.25172.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.0-preview.3.25172.1
                    
#r "nuget: Microsoft.AspNetCore.Authentication.MicrosoftAccount, 10.0.0-preview.3.25172.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.
#addin nuget:?package=Microsoft.AspNetCore.Authentication.MicrosoftAccount&version=10.0.0-preview.3.25172.1&prerelease
                    
Install Microsoft.AspNetCore.Authentication.MicrosoftAccount as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.MicrosoftAccount&version=10.0.0-preview.3.25172.1&prerelease
                    
Install Microsoft.AspNetCore.Authentication.MicrosoftAccount 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (80)

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 (23)

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 9 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 19, React 19, Vue 3.5, BFF with YARP, NextJs 15, 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.
cloudscribe/cloudscribe
ASP.NET Core multi-tenant web application foundation with management for sites, users, roles, claims and more
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
abpframework/abp-samples
Sample solutions built with the ABP Framework
neozhu/CleanArchitectureWithBlazorServer
This is a repository for creating a Blazor Server dashboard application following the principles of Clean Architecture
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
FritzAndFriends/TagzApp
An application that discovers content on social media for hashtags
aruss/IdentityBase
IdentityBase is a Universal Identity Platform for web, mobile and IoT built on top of IdentityServer.
Version Downloads Last updated
10.0.0-preview.3.25172.1 377 4/10/2025
10.0.0-preview.2.25164.1 547 3/18/2025
10.0.0-preview.1.25120.3 573 2/25/2025
9.0.4 14,624 4/8/2025
9.0.3 30,306 3/11/2025
9.0.2 40,324 2/11/2025
9.0.1 42,394 1/14/2025
9.0.0 111,570 11/12/2024
9.0.0-rc.2.24474.3 5,046 10/8/2024
9.0.0-rc.1.24452.1 1,603 9/10/2024
9.0.0-preview.7.24406.2 1,108 8/13/2024
9.0.0-preview.6.24328.4 81,828 7/9/2024
9.0.0-preview.5.24306.11 495 6/11/2024
9.0.0-preview.4.24267.6 428 5/21/2024
9.0.0-preview.3.24172.13 1,028 4/11/2024
9.0.0-preview.2.24128.4 524 3/12/2024
9.0.0-preview.1.24081.5 1,767 2/13/2024
8.0.15 6,332 4/8/2025
8.0.14 13,421 3/11/2025
8.0.13 17,098 2/11/2025
8.0.12 27,542 1/14/2025
8.0.11 113,839 11/12/2024
8.0.10 185,830 10/8/2024
8.0.8 273,606 8/13/2024
8.0.7 128,177 7/9/2024
8.0.6 184,826 5/28/2024
8.0.5 70,960 5/14/2024
8.0.4 175,107 4/9/2024
8.0.3 98,597 3/12/2024
8.0.2 141,617 2/13/2024
8.0.1 129,973 1/9/2024
8.0.0 466,809 11/14/2023
8.0.0-rc.2.23480.2 9,318 10/10/2023
8.0.0-rc.1.23421.29 2,757 9/12/2023
8.0.0-preview.7.23375.9 1,928 8/8/2023
8.0.0-preview.6.23329.11 1,230 7/11/2023
8.0.0-preview.5.23302.2 996 6/13/2023
8.0.0-preview.4.23260.4 236,338 5/16/2023
8.0.0-preview.3.23177.8 1,423 4/11/2023
8.0.0-preview.2.23153.2 90,907 3/14/2023
8.0.0-preview.1.23112.2 494 2/21/2023
7.0.20 19,097 5/28/2024
7.0.19 3,873 5/14/2024
7.0.18 8,591 4/9/2024
7.0.17 10,209 3/12/2024
7.0.16 9,126 2/13/2024
7.0.15 14,693 1/9/2024
7.0.14 32,512 11/14/2023
7.0.13 44,443 10/24/2023
7.0.12 30,590 10/10/2023
7.0.11 74,444 9/12/2023
7.0.10 107,167 8/8/2023
7.0.9 82,596 7/11/2023
7.0.8 82,134 6/22/2023
7.0.7 21,621 6/13/2023
7.0.5 263,375 4/11/2023
7.0.4 67,822 3/14/2023
7.0.3 66,596 2/14/2023
7.0.2 157,424 1/10/2023
7.0.1 34,449 12/13/2022
7.0.0 235,145 11/7/2022
7.0.0-rc.2.22476.2 2,059 10/11/2022
7.0.0-rc.1.22427.2 67,101 9/14/2022
7.0.0-preview.7.22376.6 731 8/9/2022
7.0.0-preview.6.22330.3 526 7/12/2022
7.0.0-preview.5.22303.8 779 6/14/2022
7.0.0-preview.4.22251.1 775 5/10/2022
7.0.0-preview.3.22178.4 677 4/13/2022
7.0.0-preview.2.22153.2 430 3/14/2022
7.0.0-preview.1.22109.13 459 2/17/2022
6.0.36 11,316 11/12/2024
6.0.35 10,278 10/8/2024
6.0.33 11,548 8/13/2024
6.0.32 14,464 7/9/2024
6.0.31 12,042 5/28/2024
6.0.30 4,394 5/14/2024
6.0.29 9,366 4/9/2024
6.0.28 12,099 3/12/2024
6.0.27 7,233 2/13/2024
6.0.26 30,584 1/9/2024
6.0.25 44,970 11/14/2023
6.0.24 69,383 10/24/2023
6.0.23 13,263 10/10/2023
6.0.22 23,327 9/12/2023
6.0.21 51,868 8/8/2023
6.0.20 40,582 7/11/2023
6.0.19 21,568 6/22/2023
6.0.18 19,033 6/13/2023
6.0.16 112,884 4/11/2023
6.0.15 40,557 3/14/2023
6.0.14 50,209 2/14/2023
6.0.13 133,509 1/10/2023
6.0.12 53,873 12/13/2022
6.0.11 76,319 11/7/2022
6.0.10 245,203 10/11/2022
6.0.9 117,912 9/13/2022
6.0.8 199,673 8/9/2022
6.0.7 323,986 7/12/2022
6.0.6 139,618 6/14/2022
6.0.5 1,082,721 5/10/2022
6.0.4 302,269 4/11/2022
6.0.3 200,058 3/8/2022
6.0.2 133,953 2/8/2022
6.0.1 581,633 12/14/2021
6.0.0 433,935 11/8/2021
6.0.0-rc.2.21480.10 2,265 10/12/2021
6.0.0-rc.1.21452.15 3,494 9/14/2021
6.0.0-preview.7.21378.6 1,446 8/10/2021
6.0.0-preview.6.21355.2 860 7/14/2021
6.0.0-preview.5.21301.17 998 6/15/2021
6.0.0-preview.4.21253.5 788 5/24/2021
6.0.0-preview.3.21201.13 756 4/8/2021
6.0.0-preview.2.21154.6 678 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,747 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 117,121 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 6,777 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 21,379 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 16,205 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 55,446 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 31,507 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 78,667 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 106,605 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 81,655 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 92,864 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 115,766 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 78,542 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 124,872 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 143,012 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 43,381 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 31,027 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 66,318 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 388,087 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 2,079 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 1,754 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 820 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 696 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 831 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 630 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 674 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 680 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 675 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 660 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 11,530 12/13/2022
3.1.31 3,905 11/8/2022
3.1.30 2,453 10/11/2022
3.1.29 4,944 9/13/2022
3.1.28 3,163 8/9/2022
3.1.27 2,090 7/12/2022
3.1.26 4,786 6/14/2022
3.1.25 15,274 5/10/2022
3.1.24 4,134 4/11/2022
3.1.23 14,143 3/8/2022
3.1.22 27,290 12/14/2021
3.1.21 20,581 11/7/2021
3.1.20 28,138 10/11/2021
3.1.19 24,075 9/14/2021
3.1.18 21,698 8/10/2021
3.1.17 34,278 7/13/2021
3.1.16 27,890 6/8/2021
3.1.15 13,522 5/11/2021
3.1.14 23,700 4/6/2021
3.1.13 59,702 3/9/2021
3.1.12 20,893 2/9/2021
3.1.11 127,516 1/12/2021
3.1.10 85,921 11/9/2020
3.1.9 106,263 10/13/2020
3.1.8 168,874 9/8/2020
3.1.7 68,276 8/11/2020
3.1.6 60,951 7/14/2020
3.1.5 207,433 6/9/2020
3.1.4 114,064 5/12/2020
3.1.3 162,352 3/24/2020
3.1.2 109,203 2/18/2020
3.1.1 76,407 1/14/2020
3.1.0 87,876 12/3/2019
3.1.0-preview3.19555.2 690 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 672 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 721 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 4,344 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 2,724 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 597,280 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,616 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,795 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 2,255 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 2,943 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,605 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 2,085 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,657 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 1,733 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 1,626 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 1,730 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 171 1/14/2025
2.2.0 13,615,338 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 63,505 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,061 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 3,175 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.2 13,430,661 8/21/2018
2.1.1 10,793,634 6/18/2018
2.1.0 3,449,218 5/29/2018
2.1.0-rc1-final 19,468 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 19,814 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 27,338 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 3,758,626 5/7/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 3,429,154 3/13/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.1 5,258,172 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,358,222 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 54,691 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 18,614 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 8,199 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 64,832 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 72,208 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 87,908 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 3,575 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 4,413 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 3,134 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 5,257 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 7,968 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 5,615 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 129,743 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 3,679 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.