Class GoogleClientSecrets
Inheritance
GoogleClientSecrets
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class GoogleClientSecrets
Properties
Secrets
Gets the client secrets which contains the client identifier and client secret.
Declaration
public ClientSecrets Secrets { get; }
Property Value
Methods
FromFile(string)
Loads the Google client secret from a JSON file.
Declaration
public static GoogleClientSecrets FromFile(string clientSecretsFilePath)
Parameters
Type |
Name |
Description |
string |
clientSecretsFilePath |
|
Returns
FromFileAsync(string, CancellationToken)
Asynchronously loads the Google client secret from a JSON file.
Declaration
public static Task<GoogleClientSecrets> FromFileAsync(string clientSecretsFilePath, CancellationToken cancellationToken = default)
Parameters
Returns
FromStream(Stream)
Loads the Google client secret from the input stream.
Declaration
public static GoogleClientSecrets FromStream(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
FromStreamAsync(Stream, CancellationToken)
Asynchronously loads the Google client secret from the input stream.
Declaration
public static Task<GoogleClientSecrets> FromStreamAsync(Stream stream, CancellationToken cancellationToken = default)
Parameters
Returns
Load(Stream)
Loads the Google client secret from the input stream.
Declaration
[Obsolete("Please use GoogleClientSecrets.FromStream which is an equivalent alternative.")]
public static GoogleClientSecrets Load(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns