Class OneTimeSecretAttribute
Marks a result member that carries a value the caller is shown once: a generated secret, a bearer token
for later calls, an enrollment secret, recovery codes. An answer in which such a member is set is not kept
in the idempotency cache. A repeated request with the same Idempotency-Key is not carried out
again and answers with instead of the secret.
[AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class OneTimeSecretAttribute : Attribute
Inheritance
Remarks
A member counts as set when it is not null, not an empty string and not an empty collection, so a
type that carries the secret only on some operations (a webhook subscription, which shows its HMAC secret
on create and rotation only) is kept in the cache whole on the other ones.