Documentation
¶
Overview ¶
Package handshake answers the GET some providers send before they will accept a callback address.
It shares an address with the inbound port and inverts its rule: a webhook is never rejected for what it says, and a handshake exists to be rejected. An address a stranger can confirm is an address anyone can point at their own provider, so a wrong token is refused and nothing is recorded either way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tenants ¶
Declared here, by the side that consumes them, so this package depends on no storage.
type Tokens ¶
type Tokens interface {
// VerifyToken is the token a provider must offer, and whether one was
// ever asked for. A provider that asked and whose token cannot be read
// here answers ("", true).
VerifyToken(tenant uuid.UUID, provider string) (token string, configured bool)
}
Declared here, by the side that consumes them, so this package depends on no storage.
Click to show internal directories.
Click to hide internal directories.