Soenneker.Google.Credentials
4.0.2569
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Google.Credentials --version 4.0.2569
NuGet\Install-Package Soenneker.Google.Credentials -Version 4.0.2569
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="Soenneker.Google.Credentials" Version="4.0.2569" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Google.Credentials" Version="4.0.2569" />
<PackageReference Include="Soenneker.Google.Credentials" />
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 Soenneker.Google.Credentials --version 4.0.2569
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Google.Credentials, 4.0.2569"
#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 Soenneker.Google.Credentials@4.0.2569
#: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=Soenneker.Google.Credentials&version=4.0.2569
#tool nuget:?package=Soenneker.Google.Credentials&version=4.0.2569
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Google.Credentials
A utility for retrieving and caching Google credentials with dynamic scopes.
Install
dotnet add package Soenneker.Google.Credentials
Quick start
using Soenneker.Google.Credentials.Registrars;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
var result = services.AddGoogleCredentialsUtilAsSingleton();
Adds IGoogleCredentialsUtil as a singleton service.
What you get
IGoogleCredentialsUtil— A utility for retrieving and caching Google credentials with dynamic scopes.GoogleCredentialsUtilRegistrar— An async thread-safe singleton for Google OAuth credentials.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
IGoogleCredentialsUtil.Get(fileName, scopes, cancellationToken) |
Gets a scoped Google credential from a specified service account file. | The scoped ICredential. |
IGoogleCredentialsUtil.Remove(fileName, scopes, cancellationToken) |
Removes a cached credential for a specific file and scope set. | true if removes a cached credential for a specific file and scope set; otherwise, false. |
IGoogleCredentialsUtil.RemoveSync(fileName, scopes, cancellationToken) |
Removes a cached credential for a specific file and scope set (synchronous). | Returns no value; the requested change is complete when the method returns. |
GoogleCredentialsUtilRegistrar.AddGoogleCredentialsUtilAsSingleton(services) |
Adds IGoogleCredentialsUtil as a singleton service. |
The same service collection, so additional registrations can be chained. |
GoogleCredentialsUtilRegistrar.AddGoogleCredentialsUtilAsScoped(services) |
Adds IGoogleCredentialsUtil as a scoped service. |
The same service collection, so additional registrations can be chained. |
Practical notes
- Cancellation stops pending work; it does not undo work that has already completed.
- Calls that return a cached or singleton value reuse the same instance until the owning service is disposed.
- Dispose instances you own when their scope ends so held resources can be released.
| Product | Versions 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
- Google.Apis.Auth (>= 1.76.0)
- Soenneker.Dictionaries.SingletonKeys (>= 4.0.128)
- Soenneker.Utils.File (>= 4.0.2230)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Google.Credentials:
| Package | Downloads |
|---|---|
|
Soenneker.Google.IndexingService
A lazy, thread-safe provider for Google Indexing API clients keyed by service-account file. |
|
|
Soenneker.Google.SearchConsole
A utility library for Google Search Console. |
|
|
Soenneker.Google.DataManager.Client
Provides a shared authenticated Google Data Manager API client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.2622 | 0 | 9/29/2026 |
| 4.0.2621 | 0 | 9/29/2026 |
| 4.0.2620 | 0 | 9/29/2026 |
| 4.0.2619 | 0 | 9/28/2026 |
| 4.0.2618 | 131 | 9/25/2026 |
| 4.0.2617 | 66 | 9/25/2026 |
| 4.0.2616 | 75 | 9/25/2026 |
| 4.0.2615 | 73 | 9/25/2026 |
| 4.0.2614 | 67 | 9/24/2026 |
| 4.0.2613 | 53 | 9/24/2026 |
| 4.0.2612 | 77 | 9/24/2026 |
| 4.0.2611 | 249 | 9/16/2026 |
| 4.0.2610 | 90 | 9/16/2026 |
| 4.0.2609 | 113 | 9/16/2026 |
| 4.0.2608 | 114 | 9/16/2026 |
| 4.0.2607 | 113 | 9/16/2026 |
| 4.0.2606 | 89 | 9/16/2026 |
| 4.0.2605 | 115 | 9/15/2026 |
| 4.0.2604 | 183 | 9/13/2026 |
| 4.0.2569 | 161 | 8/30/2026 |
Loading failed
Update dependency Soenneker.Dictionaries.SingletonKeys to 4.0.128 (#3097)