Microsoft.AspNetCore.Authentication.Google 10.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Authentication.Google --version 10.0.0
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.Google -Version 10.0.0
                    
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.Google" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Google" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" />
                    
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.Google --version 10.0.0
                    
#r "nuget: Microsoft.AspNetCore.Authentication.Google, 10.0.0"
                    
#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.Google@10.0.0
                    
#: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.Google&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.Google&version=10.0.0
                    
Install as a Cake Tool

About

Microsoft.AspNetCore.Authentication.Google contains middleware to support Google's OAuth 2.0 authentication workflow.

How to Use

To use Microsoft.AspNetCore.Authentication.Google, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Authentication.Google

Configuration

  1. Refer to the guide in the official documentation here to configure the Google OAuth 2.0 client ID and secret
  2. Follow the steps in the official documentation here to store the Google client ID and secret
  3. Add the Authentication service to your app's Program.cs:
    var builder = WebApplication.CreateBuilder(args);
    
    builder.Services.AddAuthentication().AddGoogle(googleOptions =>
    {
        googleOptions.ClientId = builder.Configuration["Authentication:Google:ClientId"];
        googleOptions.ClientSecret = builder.Configuration["Authentication:Google:ClientSecret"];
    });
    

Main Types

The main types provided by this package are:

  • GoogleOptions: Represents the options for configuring Google authentication
  • GoogleHandler: The authentication handler responsible for processing Google authentication requests and generating the appropriate authentication ticket

Additional Documentation

For additional documentation and examples, refer to the official documentation on Google login setup in ASP.NET Core.

Feedback & Contributing

Microsoft.AspNetCore.Authentication.Google 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 (142)

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

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

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

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.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
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.
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
ivanpaulovich/clean-architecture-manga
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
davidfowl/TodoApp
Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication
SciSharp/BotSharp
AI Multi-Agent Framework in .NET
vietnam-devs/coolstore-microservices
A full-stack .NET microservices build on Dapr and Tye
aspnet-contrib/AspNet.Security.OAuth.Providers
OAuth 2.0 social authentication providers for ASP.NET Core
Squidex/squidex
Headless CMS and Content Managment Hub
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 21, 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), ...
aspnet/Identity
[Archived] ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. Project moved to https://github.com/aspnet/AspNetCore
enkodellc/blazorboilerplate
Blazor Boilerplate / Starter Template with MudBlazor
grandnode/grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
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.
fullstackproltd/AspNetCoreSpa
Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
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
Version Downloads Last Updated
10.0.2 25,167 1/13/2026
10.0.1 141,641 12/9/2025
10.0.0 374,259 11/11/2025
10.0.0-rc.2.25502.107 4,798 10/14/2025
10.0.0-rc.1.25451.107 4,410 9/9/2025
10.0.0-preview.7.25380.108 964 8/12/2025
10.0.0-preview.6.25358.103 1,526 7/15/2025
10.0.0-preview.5.25277.114 1,068 6/6/2025
10.0.0-preview.4.25258.110 1,097 5/12/2025
10.0.0-preview.3.25172.1 867 4/10/2025
10.0.0-preview.2.25164.1 81,589 3/18/2025
10.0.0-preview.1.25120.3 133,631 2/25/2025
9.0.12 4,226 1/13/2026
9.0.11 280,896 11/11/2025
9.0.10 417,899 10/14/2025
9.0.9 549,342 9/9/2025
9.0.8 528,342 8/5/2025
9.0.7 448,927 7/8/2025
9.0.6 480,003 6/10/2025
9.0.5 525,248 5/13/2025
9.0.4 511,898 4/8/2025
9.0.3 482,558 3/11/2025
9.0.2 517,226 2/11/2025
9.0.1 657,441 1/14/2025
9.0.0 689,985 11/12/2024
9.0.0-rc.2.24474.3 10,997 10/8/2024
9.0.0-rc.1.24452.1 4,987 9/10/2024
9.0.0-preview.7.24406.2 4,649 8/13/2024
9.0.0-preview.6.24328.4 102,751 7/9/2024
9.0.0-preview.5.24306.11 966 6/11/2024
9.0.0-preview.4.24267.6 910 5/21/2024
9.0.0-preview.3.24172.13 68,216 4/11/2024
9.0.0-preview.2.24128.4 960 3/12/2024
9.0.0-preview.1.24081.5 22,628 2/13/2024
8.0.23 3,521 1/13/2026
8.0.22 261,152 11/11/2025
8.0.21 349,375 10/14/2025
8.0.20 378,057 9/9/2025
8.0.19 414,963 8/4/2025
8.0.18 392,457 7/8/2025
8.0.17 449,432 6/10/2025
8.0.16 429,110 5/13/2025
8.0.15 496,547 4/8/2025
8.0.14 431,215 3/11/2025
8.0.13 442,760 2/11/2025
8.0.12 462,784 1/14/2025
8.0.11 862,905 11/12/2024
8.0.10 930,302 10/8/2024
8.0.8 1,016,166 8/13/2024
8.0.7 723,244 7/9/2024
8.0.6 724,239 5/28/2024
8.0.5 582,431 5/14/2024
8.0.4 708,226 4/9/2024
8.0.3 699,783 3/12/2024
8.0.2 706,474 2/13/2024
8.0.1 697,182 1/9/2024
8.0.0 1,356,902 11/14/2023
8.0.0-rc.2.23480.2 8,305 10/10/2023
8.0.0-rc.1.23421.29 3,088 9/12/2023
8.0.0-preview.7.23375.9 2,425 8/8/2023
8.0.0-preview.6.23329.11 2,743 7/11/2023
8.0.0-preview.5.23302.2 1,444 6/13/2023
8.0.0-preview.4.23260.4 263,859 5/16/2023
8.0.0-preview.3.23177.8 2,266 4/11/2023
8.0.0-preview.2.23153.2 89,214 3/14/2023
8.0.0-preview.1.23112.2 51,198 2/21/2023
7.0.20 414,796 5/28/2024
7.0.19 338,226 5/14/2024
7.0.18 341,986 4/9/2024
7.0.17 347,643 3/12/2024
7.0.16 356,364 2/13/2024
7.0.15 409,429 1/9/2024
7.0.14 442,286 11/14/2023
7.0.13 482,179 10/24/2023
7.0.12 402,110 10/10/2023
7.0.11 458,243 9/12/2023
7.0.10 537,610 8/8/2023
7.0.9 488,435 7/11/2023
7.0.8 437,775 6/22/2023
7.0.7 373,557 6/13/2023
7.0.5 853,107 4/11/2023
7.0.4 462,386 3/14/2023
7.0.3 478,411 2/14/2023
7.0.2 518,476 1/10/2023
7.0.1 414,678 12/13/2022
7.0.0 688,773 11/7/2022
7.0.0-rc.2.22476.2 3,520 10/11/2022
7.0.0-rc.1.22427.2 67,535 9/14/2022
7.0.0-preview.7.22376.6 1,239 8/9/2022
7.0.0-preview.6.22330.3 962 7/12/2022
7.0.0-preview.5.22303.8 1,158 6/14/2022
7.0.0-preview.4.22251.1 4,605 5/10/2022
7.0.0-preview.3.22178.4 1,209 4/13/2022
7.0.0-preview.2.22153.2 760 3/14/2022
7.0.0-preview.1.22109.13 782 2/17/2022
6.0.36 387,974 11/12/2024
6.0.35 346,838 10/8/2024
6.0.33 358,126 8/13/2024
6.0.32 357,854 7/9/2024
6.0.31 354,281 5/28/2024
6.0.30 358,560 5/14/2024
6.0.29 352,878 4/9/2024
6.0.28 355,687 3/12/2024
6.0.27 358,773 2/13/2024
6.0.26 396,916 1/9/2024
6.0.25 403,846 11/14/2023
6.0.24 458,667 10/24/2023
6.0.23 357,529 10/10/2023
6.0.22 408,785 9/12/2023
6.0.21 446,404 8/8/2023
6.0.20 391,707 7/11/2023
6.0.19 386,548 6/22/2023
6.0.18 364,881 6/13/2023
6.0.16 535,038 4/11/2023
6.0.15 425,008 3/14/2023
6.0.14 414,236 2/14/2023
6.0.13 611,800 1/10/2023
6.0.12 428,173 12/13/2022
6.0.11 585,085 11/7/2022
6.0.10 670,050 10/11/2022
6.0.9 531,894 9/13/2022
6.0.8 691,480 8/9/2022
6.0.7 1,162,232 7/12/2022
6.0.6 621,170 6/14/2022
6.0.5 1,738,092 5/10/2022
6.0.4 653,840 4/11/2022
6.0.3 564,413 3/8/2022
6.0.2 571,667 2/8/2022
6.0.1 1,346,481 12/14/2021
6.0.0 1,192,850 11/8/2021
6.0.0-rc.2.21480.10 5,889 10/12/2021
6.0.0-rc.1.21452.15 5,185 9/14/2021
6.0.0-preview.7.21378.6 2,959 8/10/2021
6.0.0-preview.6.21355.2 1,821 7/14/2021
6.0.0-preview.5.21301.17 1,509 6/15/2021
6.0.0-preview.4.21253.5 1,270 5/24/2021
6.0.0-preview.3.21201.13 1,185 4/8/2021
6.0.0-preview.2.21154.6 1,126 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 2,299 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 505,474 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 366,883 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 372,871 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 377,525 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 417,054 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 393,710 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 473,580 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 487,547 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 481,908 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 496,765 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 573,284 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 491,793 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 540,378 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 520,429 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 476,305 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 461,109 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 486,608 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 807,223 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 2,781 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 3,865 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,568 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 1,803 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,467 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 1,040 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 1,139 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 2,062 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 1,084 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 1,096 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 388,492 12/13/2022
3.1.31 348,118 11/8/2022
3.1.30 340,403 10/11/2022
3.1.29 341,250 9/13/2022
3.1.28 346,480 8/9/2022
3.1.27 346,890 7/12/2022
3.1.26 350,324 6/14/2022
3.1.25 349,397 5/10/2022
3.1.24 342,511 4/11/2022
3.1.23 359,691 3/8/2022
3.1.22 375,729 12/14/2021
3.1.21 365,681 11/7/2021
3.1.20 383,774 10/11/2021
3.1.19 369,424 9/14/2021
3.1.18 455,989 8/10/2021
3.1.17 392,562 7/13/2021
3.1.16 421,221 6/8/2021
3.1.15 364,027 5/11/2021
3.1.14 442,352 4/6/2021
3.1.13 443,759 3/9/2021
3.1.12 406,546 2/9/2021
3.1.11 497,105 1/12/2021
3.1.10 632,822 11/9/2020
3.1.9 592,922 10/13/2020
3.1.8 670,480 9/8/2020
3.1.7 489,624 8/11/2020
3.1.6 530,178 7/14/2020
3.1.5 976,162 6/9/2020
3.1.4 533,104 5/12/2020
3.1.3 802,690 3/24/2020
3.1.2 612,976 2/18/2020
3.1.1 560,213 1/14/2020
3.1.0 676,266 12/3/2019
3.1.0-preview3.19555.2 1,407 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 1,005 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 1,213 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 349,752 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 350,134 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 1,241,654 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 2,806 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 2,352 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 5,395 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 2,823 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 3,430 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 3,134 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 2,380 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 2,937 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,266 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 2,584 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.9 138 1/7/2026
2.3.8 153 1/6/2026
2.3.0 334,441 1/14/2025
2.2.2 10,183,779 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.0 11,831,645 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 64,221 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,570 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 3,899 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.8 5,328,828 2/12/2019
2.1.2 9,746,407 8/21/2018
2.1.1 12,831,825 6/18/2018
2.1.0 4,088,022 5/29/2018
2.1.0-rc1-final 20,135 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 20,621 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 28,219 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 4,231,645 5/7/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 3,862,048 3/13/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.1 5,797,723 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,899,362 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 58,012 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 22,902 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 345,908 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 457,661 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 480,426 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 454,147 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 4,534 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 339,099 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 337,660 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 339,825 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 349,668 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 342,491 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 508,787 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 6,823 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.