Microsoft.AspNetCore.Authentication.Google 10.0.0-preview.2.25164.1

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Authentication.Google.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Authentication.Google --version 10.0.0-preview.2.25164.1
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.Google -Version 10.0.0-preview.2.25164.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.Google" Version="10.0.0-preview.2.25164.1" />
                    
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-preview.2.25164.1" />
                    
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-preview.2.25164.1
                    
#r "nuget: Microsoft.AspNetCore.Authentication.Google, 10.0.0-preview.2.25164.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.Google&version=10.0.0-preview.2.25164.1&prerelease
                    
Install Microsoft.AspNetCore.Authentication.Google as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.Google&version=10.0.0-preview.2.25164.1&prerelease
                    
Install Microsoft.AspNetCore.Authentication.Google 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (126)

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

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 8 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 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), ..
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.
DuendeSoftware/products
The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core
xamarin/Essentials
Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
fullstackproltd/AspNetCoreSpa
Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
Version Downloads Last updated
10.0.0-preview.3.25172.1 86 4/10/2025
10.0.0-preview.2.25164.1 613 3/18/2025
10.0.0-preview.1.25120.3 678 2/25/2025
9.0.4 2,962 4/8/2025
9.0.3 48,950 3/11/2025
9.0.2 104,998 2/11/2025
9.0.1 104,010 1/14/2025
9.0.0 147,318 11/12/2024
9.0.0-rc.2.24474.3 10,846 10/8/2024
9.0.0-rc.1.24452.1 4,079 9/10/2024
9.0.0-preview.7.24406.2 1,630 8/13/2024
9.0.0-preview.6.24328.4 73,029 7/9/2024
9.0.0-preview.5.24306.11 789 6/11/2024
9.0.0-preview.4.24267.6 730 5/21/2024
9.0.0-preview.3.24172.13 67,961 4/11/2024
9.0.0-preview.2.24128.4 789 3/12/2024
9.0.0-preview.1.24081.5 22,314 2/13/2024
8.0.15 1,137 4/8/2025
8.0.14 21,824 3/11/2025
8.0.13 32,607 2/11/2025
8.0.12 51,263 1/14/2025
8.0.11 219,420 11/12/2024
8.0.10 338,432 10/8/2024
8.0.8 420,800 8/13/2024
8.0.7 236,060 7/9/2024
8.0.6 281,835 5/28/2024
8.0.5 170,623 5/14/2024
8.0.4 280,736 4/9/2024
8.0.3 282,162 3/12/2024
8.0.2 289,732 2/13/2024
8.0.1 269,189 1/9/2024
8.0.0 645,206 11/14/2023
8.0.0-rc.2.23480.2 8,098 10/10/2023
8.0.0-rc.1.23421.29 2,945 9/12/2023
8.0.0-preview.7.23375.9 2,256 8/8/2023
8.0.0-preview.6.23329.11 2,593 7/11/2023
8.0.0-preview.5.23302.2 1,246 6/13/2023
8.0.0-preview.4.23260.4 227,624 5/16/2023
8.0.0-preview.3.23177.8 1,648 4/11/2023
8.0.0-preview.2.23153.2 88,111 3/14/2023
8.0.0-preview.1.23112.2 51,007 2/21/2023
7.0.20 44,884 5/28/2024
7.0.19 3,165 5/14/2024
7.0.18 6,975 4/9/2024
7.0.17 12,700 3/12/2024
7.0.16 20,281 2/13/2024
7.0.15 32,813 1/9/2024
7.0.14 91,952 11/14/2023
7.0.13 132,053 10/24/2023
7.0.12 61,584 10/10/2023
7.0.11 117,734 9/12/2023
7.0.10 187,251 8/8/2023
7.0.9 131,927 7/11/2023
7.0.8 99,033 6/22/2023
7.0.7 37,973 6/13/2023
7.0.5 468,102 4/11/2023
7.0.4 120,275 3/14/2023
7.0.3 127,722 2/14/2023
7.0.2 174,952 1/10/2023
7.0.1 78,178 12/13/2022
7.0.0 320,844 11/7/2022
7.0.0-rc.2.22476.2 3,322 10/11/2022
7.0.0-rc.1.22427.2 67,349 9/14/2022
7.0.0-preview.7.22376.6 1,070 8/9/2022
7.0.0-preview.6.22330.3 763 7/12/2022
7.0.0-preview.5.22303.8 968 6/14/2022
7.0.0-preview.4.22251.1 4,413 5/10/2022
7.0.0-preview.3.22178.4 1,013 4/13/2022
7.0.0-preview.2.22153.2 562 3/14/2022
7.0.0-preview.1.22109.13 574 2/17/2022
6.0.36 14,015 11/12/2024
6.0.35 7,995 10/8/2024
6.0.33 16,091 8/13/2024
6.0.32 14,952 7/9/2024
6.0.31 15,112 5/28/2024
6.0.30 20,511 5/14/2024
6.0.29 14,764 4/9/2024
6.0.28 18,289 3/12/2024
6.0.27 19,942 2/13/2024
6.0.26 44,511 1/9/2024
6.0.25 59,608 11/14/2023
6.0.24 121,145 10/24/2023
6.0.23 21,631 10/10/2023
6.0.22 65,167 9/12/2023
6.0.21 101,704 8/8/2023
6.0.20 53,735 7/11/2023
6.0.19 46,570 6/22/2023
6.0.18 29,242 6/13/2023
6.0.16 188,591 4/11/2023
6.0.15 82,293 3/14/2023
6.0.14 74,413 2/14/2023
6.0.13 250,358 1/10/2023
6.0.12 87,004 12/13/2022
6.0.11 235,154 11/7/2022
6.0.10 319,903 10/11/2022
6.0.9 187,596 9/13/2022
6.0.8 336,410 8/9/2022
6.0.7 753,661 7/12/2022
6.0.6 274,433 6/14/2022
6.0.5 1,258,280 5/10/2022
6.0.4 294,713 4/11/2022
6.0.3 216,157 3/8/2022
6.0.2 223,899 2/8/2022
6.0.1 966,915 12/14/2021
6.0.0 789,140 11/8/2021
6.0.0-rc.2.21480.10 5,667 10/12/2021
6.0.0-rc.1.21452.15 4,982 9/14/2021
6.0.0-preview.7.21378.6 2,740 8/10/2021
6.0.0-preview.6.21355.2 1,613 7/14/2021
6.0.0-preview.5.21301.17 1,302 6/15/2021
6.0.0-preview.4.21253.5 1,075 5/24/2021
6.0.0-preview.3.21201.13 983 4/8/2021
6.0.0-preview.2.21154.6 827 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,010 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 154,576 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 30,800 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 37,540 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 42,553 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 79,201 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 58,340 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 135,033 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 149,421 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 136,044 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 158,898 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 234,407 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 152,339 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 200,626 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 179,472 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 139,419 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 121,948 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 147,366 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 455,788 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 2,489 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,557 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,266 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,499 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,185 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 744 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 832 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 1,712 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 794 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 795 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 44,330 12/13/2022
3.1.31 8,939 11/8/2022
3.1.30 6,188 10/11/2022
3.1.29 6,899 9/13/2022
3.1.28 11,616 8/9/2022
3.1.27 11,898 7/12/2022
3.1.26 14,959 6/14/2022
3.1.25 14,477 5/10/2022
3.1.24 8,368 4/11/2022
3.1.23 24,294 3/8/2022
3.1.22 39,894 12/14/2021
3.1.21 31,433 11/7/2021
3.1.20 49,355 10/11/2021
3.1.19 34,225 9/14/2021
3.1.18 120,814 8/10/2021
3.1.17 56,820 7/13/2021
3.1.16 80,574 6/8/2021
3.1.15 29,191 5/11/2021
3.1.14 103,963 4/6/2021
3.1.13 105,490 3/9/2021
3.1.12 71,578 2/9/2021
3.1.11 150,266 1/12/2021
3.1.10 276,744 11/9/2020
3.1.9 249,684 10/13/2020
3.1.8 322,481 9/8/2020
3.1.7 153,217 8/11/2020
3.1.6 190,652 7/14/2020
3.1.5 603,126 6/9/2020
3.1.4 195,185 5/12/2020
3.1.3 450,475 3/24/2020
3.1.2 261,477 2/18/2020
3.1.1 222,309 1/14/2020
3.1.0 335,084 12/3/2019
3.1.0-preview3.19555.2 1,047 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 708 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 942 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 15,129 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 15,851 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 859,701 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 2,519 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 2,046 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 5,009 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 2,521 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 3,146 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 2,801 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 2,050 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 2,624 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 1,957 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 2,284 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 176 1/14/2025
2.2.2 9,580,744 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.0 10,802,187 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 63,441 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,054 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 3,409 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.8 4,602,435 2/12/2019
2.1.2 9,036,961 8/21/2018
2.1.1 10,711,605 6/18/2018
2.1.0 3,463,166 5/29/2018
2.1.0-rc1-final 19,541 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 19,985 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 27,467 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 3,751,441 5/7/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 3,426,648 3/13/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.1 5,261,021 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,374,367 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,005 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 22,393 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 11,477 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 121,191 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 143,906 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 118,180 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 4,047 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 4,734 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 3,317 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 5,451 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 15,028 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 8,141 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 162,721 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 6,360 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.