Class EndpointAuthorization
Authorization mechanism for a subscriber endpoint.
For all requests sent by the Webhooks service, the JSON payload is
cryptographically signed. The signature is delivered in the
X-HEALTHAPI-SIGNATURE HTTP header. This is an ECDSA (NIST P256)
signature of the JSON payload. Clients must verify this signature using
Google Health API's public key to confirm the payload was sent by the Health
API.
Implements
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class EndpointAuthorization : IMessage<EndpointAuthorization>, IEquatable<EndpointAuthorization>, IDeepCloneable<EndpointAuthorization>, IBufferMessage, IMessage
Constructors
EndpointAuthorization()
Declaration
public EndpointAuthorization()
EndpointAuthorization(EndpointAuthorization)
Declaration
public EndpointAuthorization(EndpointAuthorization other)
Parameters
| Type | Name | Description |
|---|---|---|
| EndpointAuthorization | other |
Properties
Secret
Required. Input only. Provides a client-provided secret that will be sent
with each notification to the subscriber endpoint using the "Authorization"
header. The value must include the authorization scheme, e.g., "Bearer
<token>" or "Basic <credentials>", as it will be used as the full
Authorization header value. This secret is used by the API to test the
endpoint during CreateSubscriber and UpdateSubscriber calls, and will
be sent in the Authorization header for all subsequent webhook
notifications to this endpoint.
Declaration
public string Secret { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SecretSet
Output only. Whether the secret is set.
Declaration
public bool SecretSet { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |