Microsoft.AspNetCore.Authentication.Google 10.0.2

Prefix Reserved
dotnet add package Microsoft.AspNetCore.Authentication.Google --version 10.0.2
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.Google -Version 10.0.2
                    
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.2" />
                    
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.2" />
                    
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.2
                    
#r "nuget: Microsoft.AspNetCore.Authentication.Google, 10.0.2"
                    
#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.2
                    
#: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.2
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.Google&version=10.0.2
                    
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 (143)

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

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 36,991 1/13/2026
10.0.1 157,582 12/9/2025
10.0.0 393,455 11/11/2025
10.0.0-rc.2.25502.107 4,908 10/14/2025
10.0.0-rc.1.25451.107 4,420 9/9/2025
10.0.0-preview.7.25380.108 966 8/12/2025
10.0.0-preview.6.25358.103 1,597 7/15/2025
10.0.0-preview.5.25277.114 1,071 6/6/2025
10.0.0-preview.4.25258.110 1,098 5/12/2025
10.0.0-preview.3.25172.1 867 4/10/2025
10.0.0-preview.2.25164.1 82,456 3/18/2025
10.0.0-preview.1.25120.3 135,401 2/25/2025
9.0.12 6,846 1/13/2026
9.0.11 292,334 11/11/2025
9.0.10 430,443 10/14/2025
9.0.9 565,947 9/9/2025
9.0.8 540,696 8/5/2025
9.0.7 460,080 7/8/2025
9.0.6 491,304 6/10/2025
9.0.5 536,351 5/13/2025
9.0.4 522,970 4/8/2025
9.0.3 493,808 3/11/2025
9.0.2 527,874 2/11/2025
9.0.1 669,053 1/14/2025
9.0.0 704,511 11/12/2024
9.0.0-rc.2.24474.3 10,997 10/8/2024
9.0.0-rc.1.24452.1 4,999 9/10/2024
9.0.0-preview.7.24406.2 4,801 8/13/2024
9.0.0-preview.6.24328.4 102,780 7/9/2024
9.0.0-preview.5.24306.11 968 6/11/2024
9.0.0-preview.4.24267.6 911 5/21/2024
9.0.0-preview.3.24172.13 68,221 4/11/2024
9.0.0-preview.2.24128.4 963 3/12/2024
9.0.0-preview.1.24081.5 22,632 2/13/2024
8.0.23 5,143 1/13/2026
8.0.22 272,940 11/11/2025
8.0.21 361,397 10/14/2025
8.0.20 389,494 9/9/2025
8.0.19 426,829 8/4/2025
8.0.18 403,701 7/8/2025
8.0.17 460,546 6/10/2025
8.0.16 439,938 5/13/2025
8.0.15 509,384 4/8/2025
8.0.14 442,240 3/11/2025
8.0.13 454,503 2/11/2025
8.0.12 474,089 1/14/2025
8.0.11 879,126 11/12/2024
8.0.10 943,965 10/8/2024
8.0.8 1,029,399 8/13/2024
8.0.7 734,889 7/9/2024
8.0.6 735,685 5/28/2024
8.0.5 594,545 5/14/2024
8.0.4 719,375 4/9/2024
8.0.3 710,912 3/12/2024
8.0.2 717,723 2/13/2024
8.0.1 708,792 1/9/2024
8.0.0 1,372,993 11/14/2023
8.0.0-rc.2.23480.2 8,308 10/10/2023
8.0.0-rc.1.23421.29 3,090 9/12/2023
8.0.0-preview.7.23375.9 2,428 8/8/2023
8.0.0-preview.6.23329.11 2,745 7/11/2023
8.0.0-preview.5.23302.2 1,445 6/13/2023
8.0.0-preview.4.23260.4 264,060 5/16/2023
8.0.0-preview.3.23177.8 2,269 4/11/2023
8.0.0-preview.2.23153.2 89,217 3/14/2023
8.0.0-preview.1.23112.2 51,200 2/21/2023
7.0.20 425,680 5/28/2024
7.0.19 348,467 5/14/2024
7.0.18 352,226 4/9/2024
7.0.17 357,881 3/12/2024
7.0.16 366,612 2/13/2024
7.0.15 419,748 1/9/2024
7.0.14 452,734 11/14/2023
7.0.13 492,482 10/24/2023
7.0.12 412,402 10/10/2023
7.0.11 468,617 9/12/2023
7.0.10 548,197 8/8/2023
7.0.9 498,886 7/11/2023
7.0.8 448,062 6/22/2023
7.0.7 383,785 6/13/2023
7.0.5 863,962 4/11/2023
7.0.4 472,739 3/14/2023
7.0.3 488,708 2/14/2023
7.0.2 528,773 1/10/2023
7.0.1 424,920 12/13/2022
7.0.0 699,319 11/7/2022
7.0.0-rc.2.22476.2 3,523 10/11/2022
7.0.0-rc.1.22427.2 67,537 9/14/2022
7.0.0-preview.7.22376.6 1,243 8/9/2022
7.0.0-preview.6.22330.3 963 7/12/2022
7.0.0-preview.5.22303.8 1,161 6/14/2022
7.0.0-preview.4.22251.1 4,608 5/10/2022
7.0.0-preview.3.22178.4 1,210 4/13/2022
7.0.0-preview.2.22153.2 761 3/14/2022
7.0.0-preview.1.22109.13 784 2/17/2022
6.0.36 398,762 11/12/2024
6.0.35 357,207 10/8/2024
6.0.33 368,466 8/13/2024
6.0.32 368,218 7/9/2024
6.0.31 364,587 5/28/2024
6.0.30 368,786 5/14/2024
6.0.29 363,156 4/9/2024
6.0.28 366,002 3/12/2024
6.0.27 369,086 2/13/2024
6.0.26 407,196 1/9/2024
6.0.25 414,277 11/14/2023
6.0.24 468,973 10/24/2023
6.0.23 367,770 10/10/2023
6.0.22 419,036 9/12/2023
6.0.21 456,812 8/8/2023
6.0.20 401,958 7/11/2023
6.0.19 396,918 6/22/2023
6.0.18 375,107 6/13/2023
6.0.16 545,349 4/11/2023
6.0.15 435,521 3/14/2023
6.0.14 424,524 2/14/2023
6.0.13 622,593 1/10/2023
6.0.12 438,504 12/13/2022
6.0.11 595,573 11/7/2022
6.0.10 680,535 10/11/2022
6.0.9 542,216 9/13/2022
6.0.8 701,931 8/9/2022
6.0.7 1,173,684 7/12/2022
6.0.6 631,573 6/14/2022
6.0.5 1,750,785 5/10/2022
6.0.4 664,421 4/11/2022
6.0.3 574,812 3/8/2022
6.0.2 582,036 2/8/2022
6.0.1 1,357,399 12/14/2021
6.0.0 1,203,795 11/8/2021
6.0.0-rc.2.21480.10 5,891 10/12/2021
6.0.0-rc.1.21452.15 5,186 9/14/2021
6.0.0-preview.7.21378.6 2,962 8/10/2021
6.0.0-preview.6.21355.2 1,824 7/14/2021
6.0.0-preview.5.21301.17 1,510 6/15/2021
6.0.0-preview.4.21253.5 1,271 5/24/2021
6.0.0-preview.3.21201.13 1,186 4/8/2021
6.0.0-preview.2.21154.6 1,127 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,302 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 515,931 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 377,114 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 383,121 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 387,759 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 427,303 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 403,947 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 483,811 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 497,813 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 492,203 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 507,067 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 583,528 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 502,032 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 550,647 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 530,745 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 486,535 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 471,373 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 496,838 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 817,656 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 2,785 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,868 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,572 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,806 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,469 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,043 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,142 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,085 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,086 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,098 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 398,852 12/13/2022
3.1.31 358,346 11/8/2022
3.1.30 350,626 10/11/2022
3.1.29 351,482 9/13/2022
3.1.28 356,727 8/9/2022
3.1.27 357,140 7/12/2022
3.1.26 360,583 6/14/2022
3.1.25 359,655 5/10/2022
3.1.24 352,740 4/11/2022
3.1.23 369,923 3/8/2022
3.1.22 386,004 12/14/2021
3.1.21 375,909 11/7/2021
3.1.20 394,013 10/11/2021
3.1.19 379,657 9/14/2021
3.1.18 466,231 8/10/2021
3.1.17 402,800 7/13/2021
3.1.16 431,513 6/8/2021
3.1.15 374,272 5/11/2021
3.1.14 452,615 4/6/2021
3.1.13 454,003 3/9/2021
3.1.12 416,789 2/9/2021
3.1.11 507,485 1/12/2021
3.1.10 643,123 11/9/2020
3.1.9 603,168 10/13/2020
3.1.8 680,775 9/8/2020
3.1.7 499,867 8/11/2020
3.1.6 540,466 7/14/2020
3.1.5 986,896 6/9/2020
3.1.4 543,392 5/12/2020
3.1.3 813,071 3/24/2020
3.1.2 623,348 2/18/2020
3.1.1 570,476 1/14/2020
3.1.0 686,584 12/3/2019
3.1.0-preview3.19555.2 1,411 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 1,006 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 1,215 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 359,985 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 360,360 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 1,252,558 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 2,811 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 2,355 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 5,397 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 2,827 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 3,432 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 3,136 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 2,381 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 2,940 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,267 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 2,588 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.9 148 1/7/2026
2.3.8 161 1/6/2026
2.3.0 344,662 1/14/2025
2.2.2 10,196,764 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.0 11,852,085 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 64,231 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,575 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 3,905 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.8 5,339,909 2/12/2019
2.1.2 9,757,990 8/21/2018
2.1.1 12,859,699 6/18/2018
2.1.0 4,098,988 5/29/2018
2.1.0-rc1-final 20,141 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 20,627 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 28,224 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 4,243,855 5/7/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 3,873,095 3/13/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.1 5,810,546 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,911,433 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 58,026 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 22,906 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 356,143 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 467,898 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 490,676 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 464,380 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 4,537 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 349,330 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 347,889 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 350,052 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 359,900 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 352,725 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 519,107 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 6,825 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.