Class SecretsClient
- Namespace
- Auth0.ManagementApi.Hooks
- Assembly
- Auth0.ManagementApi.dll
public class SecretsClient : ISecretsClient
- Inheritance
-
SecretsClient
- Implements
- Inherited Members
- Extension Methods
Methods
CreateAsync(string, Dictionary<string, string>, RequestOptions?, CancellationToken)
Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.
public Task CreateAsync(string id, Dictionary<string, string> request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestDictionary<string, string>optionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Hooks.Secrets.CreateAsync(
"id",
new Dictionary<string, string>() { { "key", "value" } }
);
DeleteAsync(string, IEnumerable<string>, RequestOptions?, CancellationToken)
Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.
public Task DeleteAsync(string id, IEnumerable<string> request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestIEnumerable<string>optionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Hooks.Secrets.DeleteAsync("id", new List<string>() { "string" });
GetAsync(string, RequestOptions?, CancellationToken)
Retrieve a hook's secrets by the ID of the hook.
public WithRawResponseTask<Dictionary<string, string>> GetAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Hooks.Secrets.GetAsync("id");
UpdateAsync(string, Dictionary<string, string>, RequestOptions?, CancellationToken)
Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret.
public Task UpdateAsync(string id, Dictionary<string, string> request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestDictionary<string, string>optionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Hooks.Secrets.UpdateAsync(
"id",
new Dictionary<string, string>() { { "key", "value" } }
);