Microsoft.AspNetCore.Authentication.MicrosoftAccount 10.0.6

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Authentication.MicrosoftAccount --version 10.0.6
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount -Version 10.0.6
                    
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.6" />
                    
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.6" />
                    
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.6
                    
#r "nuget: Microsoft.AspNetCore.Authentication.MicrosoftAccount, 10.0.6"
                    
#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.6
                    
#: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.6
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.MicrosoftAccount&version=10.0.6
                    
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 (96)

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

FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

cloudscribe.Core.Identity

asp.net identity implementation for cloudscribe web application foundation

GitHub repositories (1)

Showing the top 1 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.
Version Downloads Last Updated
11.0.0-preview.3.26207.106 229 4/14/2026
11.0.0-preview.2.26159.112 480 3/10/2026
11.0.0-preview.1.26104.118 374 2/10/2026
10.0.7 6,847 4/21/2026
10.0.6 17,580 4/14/2026
10.0.5 98,537 3/12/2026
10.0.4 13,942 3/10/2026
10.0.3 96,198 2/10/2026
10.0.2 103,833 1/13/2026
10.0.1 113,184 12/9/2025
9.0.15 1,127 4/14/2026
9.0.14 5,164 3/10/2026
9.0.13 3,747 2/10/2026
9.0.12 6,153 1/13/2026
8.0.26 1,740 4/14/2026
8.0.25 8,063 3/10/2026
8.0.24 9,593 2/10/2026
8.0.23 9,116 1/13/2026
2.3.9 335 1/7/2026
2.3.8 322 1/6/2026
Loading failed